Exemplo n.º 1
0
        public void Heal(Character character)
        {
            CheckIfBothCharactersAreAlive(character);

            if (this.Faction != character.Faction)
            {
                throw new InvalidOperationException(OutputMessages.HealingEnemy);
            }

            character.ChangeHealth(this.AbilityPoints);
        }