Skip to content
Snippets Groups Projects
Commit 12bee6c4 authored by Lisa Greene's avatar Lisa Greene
Browse files

Fix temporary terrain destorying the portal to return to maj'eyal in the fearscape

parent a10230d1
No related branches found
No related tags found
No related merge requests found
......@@ -79,8 +79,13 @@ newEntity{ define_as = "DRAEBOR",
resolvers.inscriptions(1, {"manasurge rune"}),
on_die = function(self, who)
require("engine.ui.Dialog"):simplePopup(_t"Back and there again", _t"As the annoying imp falls a portal appears under its corpse.")
require("engine.ui.Dialog"):simplePopup("Back and there again", "As the annoying imp falls a portal appears under its corpse.")
local g = game.zone:makeEntityByName(game.level, "terrain", "PORTAL_BACK")
game.zone:addEntity(game.level, g, "terrain", self.x, self.y)
local oe = game.level.map(self.x, self.y, engine.Map.TERRAIN)
if oe:attr("temporary") and oe.old_feat then
oe.old_feat = g
else
game.zone:addEntity(game.level, g, "terrain", self.x, self.y)
end
end,
}
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