Used talk interaction distance in L2PcInstance as well.

This commit is contained in:
MobiusDev 2016-07-24 13:44:29 +00:00
parent 0796247376
commit 7d24436cfa

View File

@ -1444,7 +1444,7 @@ public final class L2PcInstance extends L2Playable
final L2Npc target = getLastFolkNPC();
if ((target != null) && isInsideRadius(target, L2Npc.INTERACTION_DISTANCE, false, false))
if ((target != null) && isInsideRadius(target, L2Npc.INTERACTION_DISTANCE_TALK, false, false))
{
quest.notifyEvent(event, target, this);
}
@ -1452,7 +1452,7 @@ public final class L2PcInstance extends L2Playable
{
final L2Object object = L2World.getInstance().findObject(getLastQuestNpcObject());
if (object.isNpc() && isInsideRadius(object, L2Npc.INTERACTION_DISTANCE, false, false))
if (object.isNpc() && isInsideRadius(object, L2Npc.INTERACTION_DISTANCE_TALK, false, false))
{
final L2Npc npc = (L2Npc) object;
quest.notifyEvent(event, npc, this);