Exemplo n.º 1
0
 public static float Q1Damage(Obj_AI_Base target)
 {
     if (target.BadaoIsValidTarget())
     {
         if (BadaoMissFortuneVariables.TapTarget.BadaoIsValidTarget() &&
             target.NetworkId == BadaoMissFortuneVariables.TapTarget.NetworkId)
         {
             return(BadaoMainVariables.Q.GetDamage(target));
         }
         if (target is Obj_AI_Minion)
         {
             return
                 (BadaoMainVariables.Q.GetDamage(target)
                  + (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 * 0.5f)));
         }
         if (target is AIHeroClient)
         {
             return
                 (BadaoMainVariables.Q.GetDamage(target)
                  + (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)));
         }
         return(BadaoMainVariables.Q.GetDamage(target));
     }
     return(0);
 }
Exemplo n.º 2
0
 private static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
 {
     if (sender.BadaoIsValidTarget() && sender.IsEnemy && sender is Obj_AI_Hero &&
         BadaoPoppyHelper.UseWAutoAntiDash(sender as Obj_AI_Hero))
     {
         if (Geometry.Distance(ObjectManager.Player.Position.To2D(), args.StartPos, args.EndPos, true)
             <= BadaoMainVariables.W.Range + sender.BoundingRadius ||
             args.StartPos.Distance(ObjectManager.Player.Position.To2D()) <= BadaoMainVariables.W.Range ||
             args.EndPos.Distance(ObjectManager.Player.Position.To2D()) <= BadaoMainVariables.W.Range)
         {
             BadaoMainVariables.W.Cast();
         }
     }
 }
Exemplo n.º 3
0
        private static void Unit_OnDash(Obj_AI_Base sender, Dash.DashItem args)
        {
            if (sender.BadaoIsValidTarget() && sender.IsEnemy && sender is Obj_AI_Hero
                && BadaoPoppyHelper.UseWAutoAntiDash(sender as Obj_AI_Hero))
            {
                if (Geometry.Distance(ObjectManager.Player.Position.To2D(),args.StartPos, args.EndPos,true)
                    <= BadaoMainVariables.W.Range + sender.BoundingRadius
                    || args.StartPos.Distance(ObjectManager.Player.Position.To2D()) <= BadaoMainVariables.W.Range
                    || args.EndPos.Distance(ObjectManager.Player.Position.To2D()) <= BadaoMainVariables.W.Range)
                {
                    BadaoMainVariables.W.Cast();
                }

            }
        }
 public static float Q1Damage(Obj_AI_Base target)
 {
     if (target.BadaoIsValidTarget())
     {
         if (BadaoMissFortuneVariables.TapTarget.BadaoIsValidTarget() &&
             target.NetworkId == BadaoMissFortuneVariables.TapTarget.NetworkId)
         {
             return BadaoMainVariables.Q.GetDamage(target);
         }
         if (target is Obj_AI_Minion)
         {
             return
                 BadaoMainVariables.Q.GetDamage(target)
                 + (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 * 0.5f));
         }
         if (target is Obj_AI_Hero)
         {
             return
                 BadaoMainVariables.Q.GetDamage(target)
                 + (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));
         }
         return BadaoMainVariables.Q.GetDamage(target);
     }
     return 0;
 }