From c5a63983ab94766cf23285219e16387d472f7445 Mon Sep 17 00:00:00 2001
From: DarkGod <darkgod@net-core.org>
Date: Wed, 4 Jan 2017 11:53:14 +0100
Subject: [PATCH] Cloning one of the acolytes in the Dark Dungeon will not
 prevent saving Melinda

for astralInferno, with love :)
---
 game/modules/tome/data/zones/crypt-kryl-feijan/npcs.lua | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/data/zones/crypt-kryl-feijan/npcs.lua b/game/modules/tome/data/zones/crypt-kryl-feijan/npcs.lua
index 9721a97731..53cd5359ae 100644
--- a/game/modules/tome/data/zones/crypt-kryl-feijan/npcs.lua
+++ b/game/modules/tome/data/zones/crypt-kryl-feijan/npcs.lua
@@ -144,12 +144,13 @@ newEntity{ define_as = "ACOLYTE",
 
 	on_die = function(self)
 		if not game.level.turn_counter then return end
+		if self.summoner then return end
 		game.level.turn_counter = game.level.turn_counter + 6 * 10
 
 		local nb = 0
 		local melinda
 		for uid, e in pairs(game.level.entities) do
-			if e.define_as and e.define_as == "ACOLYTE" and not e.dead then nb = nb + 1 end
+			if e.define_as and e.define_as == "ACOLYTE" and not e.dead and not e.summoner then nb = nb + 1 end
 			if e.define_as and e.define_as == "MELINDA" then melinda = e end
 		end
 		if nb == 0 then
-- 
GitLab