diff --git a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/knownlist/NpcKnownList.java b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/knownlist/NpcKnownList.java index aa3e28b1f5..608d813a40 100644 --- a/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/knownlist/NpcKnownList.java +++ b/L2J_Mobius_C4_ScionsOfDestiny/java/org/l2jmobius/gameserver/model/actor/knownlist/NpcKnownList.java @@ -41,9 +41,9 @@ public class NpcKnownList extends CreatureKnownList } // Broadcast correct walking NPC position. - if (getActiveObject().isNpc() && (object instanceof Creature) && object.isPlayer() && getActiveChar().isMoving() && !getActiveChar().isInCombat()) + if (object.isPlayer() && getActiveChar().isMoving() && !getActiveChar().isInCombat()) { - ((Creature) object).broadcastMoveToLocation(); + getActiveChar().broadcastMoveToLocation(); } return true; } diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/knownlist/NpcKnownList.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/knownlist/NpcKnownList.java index aa3e28b1f5..608d813a40 100644 --- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/knownlist/NpcKnownList.java +++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/actor/knownlist/NpcKnownList.java @@ -41,9 +41,9 @@ public class NpcKnownList extends CreatureKnownList } // Broadcast correct walking NPC position. - if (getActiveObject().isNpc() && (object instanceof Creature) && object.isPlayer() && getActiveChar().isMoving() && !getActiveChar().isInCombat()) + if (object.isPlayer() && getActiveChar().isMoving() && !getActiveChar().isInCombat()) { - ((Creature) object).broadcastMoveToLocation(); + getActiveChar().broadcastMoveToLocation(); } return true; }