New solution for attack movement issue.

This commit is contained in:
MobiusDev
2018-04-25 11:56:56 +00:00
parent b8b144c2ef
commit a703c138e4
16 changed files with 16 additions and 70 deletions

View File

@ -262,6 +262,7 @@ public class L2PlayerAI extends L2PlayableAI
return;
}
clientStopMoving(null);
_actor.doAutoAttack((L2Character) target);
}

View File

@ -3167,13 +3167,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
*/
public void moveToLocation(int x, int y, int z, int offset)
{
// Do not move while character is attacking or casting.
// Fixes player attack glitch while target is moving.
if (isAttackingNow() || isCastingNow())
{
return;
}
// Get the Move Speed of the L2Charcater
final double speed = getMoveSpeed();
if ((speed <= 0) || isMovementDisabled())