Fixed player attack glitch while target was moving.

This commit is contained in:
MobiusDev 2016-12-11 07:17:20 +00:00
parent c78d4dc065
commit 3485ab91be

View File

@ -3487,6 +3487,13 @@ 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())