public void attack(Hero target) { if (target.isAlive()) { this.attackTemplate.perform(this, target); } else { Console.WriteLine($"{target.name} is already dead. Calm yourself..."); } }