Skip to content
Snippets Groups Projects
Commit b29447d2 authored by dg's avatar dg
Browse files

Ruined dungeon orbs cannot be trapped

git-svn-id: http://svn.net-core.org/repos/t-engine4@3625 51575b47-30f0-44d4-a5cc-537603b46e54
parent a7fa60e1
No related branches found
No related tags found
No related merge requests found
......@@ -75,9 +75,9 @@ newEntity{
force_clone=true,
always_remember = true,
notice = true,
on_move = function(self, x, y, who)
if not who.player then return end
if not game.level.data.touch_orb then return end
block_move = function(self, x, y, who, act, couldpass)
if not who or not who.player or not act then return true end
if not game.level.data.touch_orb then return true end
local text = "???"
if self.portal_type == "water" then text = "The orb seems to drip water."
elseif self.portal_type == "earth" then text = "The orb is covered in dust."
......@@ -91,5 +91,6 @@ newEntity{
game.level.data.touch_orb(self.portal_type, x, y)
end
end)
return true
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