public void Execute(LivingEntity actor, LivingEntity target) { string actorName = (actor is Player) ? "Ty" : $" {actor.Name.ToLower()}"; string targetName = (target is Player) ? "se" : $" {target.Name.ToLower()}"; ReportResult($"{actorName} si {targetName} naučil nové kouzlo."); target.AddItemToInventory(SpellFactory.CreateSpell(_spellID)); }