コード例 #1
0
        private void SleepLogic(RBYPokemon Defender)
        {
            if (Defender.CurrentStatus == StatusConditionInflicted.None)
            {
                Displayer.PutAsleep(Defender.OwnerCall, Defender.Name);

                Defender.PutToSleep(RandomNumberGenerator(2, 5));
            }
        }
コード例 #2
0
        public void REST(RBYPokemon Attacker, RBYPokemon Defender)
        {
            if (Attacker.SubHPRemaining == Attacker.HealthPoints)
            {
                Displayer.RelayMessage("Pokemon is already healthy");
                return;
            }

            Attacker.PutToSleep(2);
            Attacker.HealDamage(Attacker.HealthPoints);
            Defender.NonDmgHit();
        }