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

Going East will keep our friends with you

git-svn-id: http://svn.net-core.org/repos/t-engine4@4380 51575b47-30f0-44d4-a5cc-537603b46e54
parent 325fb5a0
No related branches found
No related tags found
No related merge requests found
......@@ -947,7 +947,13 @@ function _M:useOrbPortal(portal)
end
game:changeLevel(portal.change_level, portal.change_zone)
if portal.after_zone_teleport then self:move(portal.after_zone_teleport.x, portal.after_zone_teleport.y, true) end
if portal.after_zone_teleport then
self:move(portal.after_zone_teleport.x, portal.after_zone_teleport.y, true)
for e, _ in pairs(game.party.members) do if e ~= self then
local x, y = util.findFreeGrid(portal.after_zone_teleport.x, portal.after_zone_teleport.y, 10, true, {[Map.ACTOR]=true})
if x then e:move(x, y, true) end
end end
end
end
if portal.message then game.logPlayer(self, portal.message) 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