From 05df893af465c748192c070130e2aa4c1a9f9a32 Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Mon, 12 Sep 2011 22:58:24 +0000
Subject: [PATCH] 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
---
 game/modules/tome/class/Player.lua | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua
index 4fd450625e..f8a3008adf 100644
--- a/game/modules/tome/class/Player.lua
+++ b/game/modules/tome/class/Player.lua
@@ -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
-- 
GitLab