public void Heal(Character character) { Validate.CharacterAlive(this); Validate.CharacterAlive(character); Validate.HealEnemy(this.Faction, character.Faction); character.ReceiveHealing(this.AbilityPoints); }
public void Heal(Character character) { CheckIfAlive(); CheckIfEnemyAlive(character); if (this.Faction != character.Faction) { throw new InvalidOperationException("Cannot heal enemy character!"); } character.ReceiveHealing(this.AbilityPoints); }