Пример #1
0
        private void MultiHitMove(string name, int atk, int def, int lvl, int basepw, double stab, double multiplier, RBYPokemon Defender, bool physpec, bool crit_chance)
        {
            int hits = RandomNumberGenerator(2, 5);
            int dmg;

            if (name == "DOUBLE KICK")
            {
                hits = 2;
            }

            for (int i = 0; i < hits; i++)
            {
                dmg = DamageCalculation(atk, def, lvl, basepw, stab, multiplier, crit_chance);
                Defender.TakeDamage(dmg, physpec);

                if (i != hits - 1)
                {
                    Displayer.AttackContiunes();
                }

                if (!Defender.IsAlive)
                {
                    break;
                }
            }
        }