Пример #1
0
        private void CastMage(Mage mage, string skillName, string enemyPlayer, string nameOfPlayer)
        {
            if (skillName == "Heal")
            {
                mage.Heal();
            }

            else if (skillName == "BlackMagicAttack")
            {
                mage.Target.Name = enemyPlayer;

                mage.BlackMagicAttack();
            }

            else if (skillName == "DodgeAttackDefense")
            {
                mage.DodgeSingleAttack();
            }

            else if (skillName == "EnergyShieldDefense")
            {
                mage.EnergyShieldDefense();
            }

            else if (skillName == "WhiteMagicAttack")
            {
                mage.Target.Name = enemyPlayer;

                mage.WhiteMagicAttack();
            }
        }