Improving walking NPC broadcast fix.

This commit is contained in:
MobiusDev 2015-05-30 20:23:21 +00:00
parent da2b9c6499
commit 74758c62e9

View File

@ -55,8 +55,8 @@ public class NpcKnownList extends CharKnownList
{
final L2Npc npc = (L2Npc) getActiveObject();
// Npc Walkers broadcast position fix.
if (object.isPlayer() && npc.isMoving())
// Broadcast correct walking NPC position.
if (object.isPlayer() && npc.isMoving() && !npc.isInCombat())
{
((L2Character) object).broadcastPacket(new MoveToLocation(npc));
}