Updated forceChangeMap for better GM Warpto (#370)

* Asked by Lost and solution suggested by Ronan in discord group.
* Using "target;" instead of "getWarpMap(target.getId());" to warp directly to the target intead of the target's map id
* This allows GMs to patrol players inside instances.
This commit is contained in:
Arufonsu
2019-01-26 15:36:49 -03:00
committed by Ronan Lana
parent c6cd69b5d7
commit 5be2e141f3

View File

@@ -1359,7 +1359,7 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
mapEim.registerPlayer(this);
}
MapleMap to = getWarpMap(target.getId());
MapleMap to = target; // warps directly to the target intead of the target's map id, this allows GMs to patrol players inside instances.
changeMapInternal(to, pto.getPosition(), MaplePacketCreator.getWarpToMap(to, pto.getId(), this));
canWarpMap = false;