Example #1
0
 private static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (BadaoPoppyHelper.UseEAutoInterrupt())
     {
         if (sender.BadaoIsValidTarget(BadaoMainVariables.E.Range) && sender.IsEnemy)
             BadaoMainVariables.E.Cast(sender);
     }
     if (BadaoPoppyHelper.UseRAutoInterrupt() && ! BadaoPoppyHelper.UseEAutoInterrupt())
     {
         if (sender.BadaoIsValidTarget(500) && sender.IsEnemy)
         {
             if (!BadaoMainVariables.R.IsCharging)
             {
                 BadaoMainVariables.R.StartCharging();
             }
             else
             {
                 BadaoMainVariables.R.Cast(sender.Position);
             }
         }
     }
 }
 // damage caculation
 public static float GetAADamage(Obj_AI_Hero target)
 {
     if (BadaoMissFortuneVariables.TapTarget.BadaoIsValidTarget() && target.BadaoIsValidTarget() &&
         target.NetworkId == BadaoMissFortuneVariables.TapTarget.NetworkId)
         return (float)Damage.CalcDamage(ObjectManager.Player, target, Damage.DamageType.Physical,
                          ObjectManager.Player.TotalAttackDamage);
     else
         return (float)Damage.CalcDamage(ObjectManager.Player, target, Damage.DamageType.Physical,
                              ObjectManager.Player.TotalAttackDamage)
                + (float)Damage.CalcDamage(ObjectManager.Player, target, Damage.DamageType.Physical,
                  (new double[] { 0.6, 0.6, 0.6, 0.7, 0.7, 0.7, 0.8, 0.8, 0.9, 0.9, 1 }
                  [ObjectManager.Player.Level > 11 ? 10 : ObjectManager.Player.Level - 1]
                  * ObjectManager.Player.TotalAttackDamage));
 }