Fix for big door targeting.
This commit is contained in:
@@ -959,12 +959,15 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
|
|
||||||
// GeoData Los Check here (or dz > 1000)
|
// GeoData Los Check here (or dz > 1000)
|
||||||
if (!GeoEngine.getInstance().canSeeTarget(this, target))
|
if (!GeoEngine.getInstance().canSeeTarget(this, target))
|
||||||
|
{
|
||||||
|
if (!target.isDoor() || (target.calculateDistance(this, false, false) > 200)) // fix for big door targeting
|
||||||
{
|
{
|
||||||
sendPacket(SystemMessageId.CANNOT_SEE_TARGET);
|
sendPacket(SystemMessageId.CANNOT_SEE_TARGET);
|
||||||
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
|
||||||
sendPacket(ActionFailed.STATIC_PACKET);
|
sendPacket(ActionFailed.STATIC_PACKET);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final L2Weapon weaponItem = getActiveWeaponItem();
|
final L2Weapon weaponItem = getActiveWeaponItem();
|
||||||
final int timeAtk = calculateTimeBetweenAttacks();
|
final int timeAtk = calculateTimeBetweenAttacks();
|
||||||
|
Reference in New Issue
Block a user