Пример #1
0
        private bool CheckDamageToW(IncData incDamage)
        {
            switch (config.Item("Wdam", true).GetValue <StringList>().SelectedIndex)
            {
            case 0:
                if (incDamage.DamageTaken > player.TotalAttackDamage / 2)
                {
                    return(true);
                }
                break;

            case 1:
                if (incDamage.DamageTaken > player.TotalAttackDamage)
                {
                    return(true);
                }
                break;

            case 2:
                if (incDamage.DamageTaken > player.TotalAttackDamage * 2)
                {
                    return(true);
                }
                break;

            case 3:
                return(false);

                break;
            }
            return(false);
        }
Пример #2
0
        private static bool CheckDamageToW(IncData incDamage)
        {
            switch (getBoxItem(miscMenu, "Wdam"))
            {
            case 0:
                if (incDamage.DamageTaken > player.TotalAttackDamage / 2)
                {
                    return(true);
                }
                break;

            case 1:
                if (incDamage.DamageTaken > player.TotalAttackDamage)
                {
                    return(true);
                }
                break;

            case 2:
                if (incDamage.DamageTaken > player.TotalAttackDamage * 2)
                {
                    return(true);
                }
                break;

            case 3:
                return(false);
            }
            return(false);
        }
Пример #3
0
 private void CastE(Obj_AI_Hero target, IncData data)
 {
     if (OnTrident && !data.AnyCC)
     {
         E.Cast(player.Position.Extend(target.Position, E.Range), config.Item("packets").GetValue <bool>());
     }
     else
     {
         E.Cast(player.Position.Extend(Game.CursorPos, E.Range), config.Item("packets").GetValue <bool>());
     }
 }