diff --git a/game/modules/tome/data/zones/high-peak/grids.lua b/game/modules/tome/data/zones/high-peak/grids.lua index ea803331c19911a8a726073f6aeae2f4e10eb3ee..8b5d0c7dd3e7cb8a135b1d42a348d96d9a942b37 100644 --- a/game/modules/tome/data/zones/high-peak/grids.lua +++ b/game/modules/tome/data/zones/high-peak/grids.lua @@ -109,9 +109,10 @@ newEntity{ base = "VOID_PORTAL", define_as = "CVOID_PORTAL", local invocation_close = function(self, who) if not who:hasQuest("high-peak") or who:hasQuest("high-peak"):isEnded() then return end - game.logPlayer(who, "#LIGHT_BLUE#You use the orb on the portal, shutting it down easily.") -- Remove the level spot local spot = game.level:pickSpot{type="portal", subtype=self.summon} + if not spot then return end + game.logPlayer(who, "#LIGHT_BLUE#You use the orb on the portal, shutting it down easily.") for i = 1, #game.level.spots do if game.level.spots[i] == spot then table.remove(game.level.spots, i) break end end local g = game.level.map(spot.x, spot.y, engine.Map.TERRAIN) g.name = g.name .. " (disabled)"