public void Heal(Character character) { CheckIfBothCharactersAreAlive(character); if (this.Faction != character.Faction) { throw new InvalidOperationException(OutputMessages.HealingEnemy); } character.ChangeHealth(this.AbilityPoints); }
public void Heal(Character character) { CheckIfBothCharactersAreAlive(character); if (this.Faction != character.Faction) { throw new InvalidOperationException(OutputMessages.HealingEnemy); } character.ChangeHealth(this.AbilityPoints); }