Skip to content
Snippets Groups Projects
Commit c5a63983 authored by DarkGod's avatar DarkGod
Browse files

Cloning one of the acolytes in the Dark Dungeon will not prevent saving Melinda

for astralInferno, with love :)
parent dedbadf6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment