Fixed NPC interaction problem.
This commit is contained in:
parent
efa6669a4b
commit
84accd0dbf
@ -93,13 +93,6 @@ public class L2NpcAction implements IActionHandler
|
||||
}
|
||||
else if (!target.isAutoAttackable(activeChar))
|
||||
{
|
||||
if (GeoData.getInstance().canSeeTarget(activeChar, target))
|
||||
{
|
||||
final Location destination = GeoData.getInstance().moveCheck(activeChar, target);
|
||||
activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, destination);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Calculate the distance between the L2PcInstance and the L2Npc
|
||||
if (!((L2Npc) target).canInteract(activeChar))
|
||||
{
|
||||
|
@ -93,13 +93,6 @@ public class L2NpcAction implements IActionHandler
|
||||
}
|
||||
else if (!target.isAutoAttackable(activeChar))
|
||||
{
|
||||
if (GeoData.getInstance().canSeeTarget(activeChar, target))
|
||||
{
|
||||
final Location destination = GeoData.getInstance().moveCheck(activeChar, target);
|
||||
activeChar.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, destination);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Calculate the distance between the L2PcInstance and the L2Npc
|
||||
if (!((L2Npc) target).canInteract(activeChar))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user