Пример #1
0
        private float abilityDamageMod(Move m, BattlePokemon enemy)
        {
            Pokemon you = this.mon;

            if (you.hasCertainAbility("technician") && m.bp <= 60)
            {
                return(1.5f);
            }
            if (you.hasCertainAbility("toughclaws") && m.flags.contact > 0)
            {
                return(1.33f);
            }
            if (you.hasCertainAbility("ironfist") && m.flags.punch > 0)
            {
                return(1.2f);
            }
            if (you.hasCertainAbility("strongjaw") && m.flags.bite > 0)
            {
                return(1.5f);
            }
            return(1);
        }