Beispiel #1
0
 public void Heal(Character character)
 {
     Validate.CharacterAlive(this);
     Validate.CharacterAlive(character);
     Validate.HealEnemy(this.Faction, character.Faction);
     character.ReceiveHealing(this.AbilityPoints);
 }
Beispiel #2
0
        public void Heal(Character character)
        {
            CheckIfAlive();
            CheckIfEnemyAlive(character);

            if (this.Faction != character.Faction)
            {
                throw new InvalidOperationException("Cannot heal enemy character!");
            }

            character.ReceiveHealing(this.AbilityPoints);
        }