Adjustments for Tiat doors.

This commit is contained in:
MobiusDev
2018-09-15 15:18:30 +00:00
parent a674523af5
commit 850c075c0e
22 changed files with 261 additions and 276 deletions

View File

@ -582,12 +582,11 @@ public final class L2DoorInstance extends L2Character
{
broadcastPacket(SystemMessage.getSystemMessage(SystemMessageId.THE_CASTLE_GATE_HAS_BEEN_DESTROYED));
}
// Correct position in case pathfinding moved player to a restricted location, since door coordinates can be behind objects.
if (killer.isPlayer())
else
{
killer.setLocation(killer.getActingPlayer().getLastServerPosition());
openMe();
}
return true;
}