Esempio n. 1
0
        private bool CheckDamageToW(WDatas 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);
        }
Esempio n. 2
0
 private bool CheckDamageToW(WDatas 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;
 }