Fixed player attack glitch while target was moving.
This commit is contained in:
parent
c78d4dc065
commit
3485ab91be
@ -3487,6 +3487,13 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
*/
|
*/
|
||||||
public void moveToLocation(int x, int y, int z, int offset)
|
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
|
// Get the Move Speed of the L2Charcater
|
||||||
final double speed = getMoveSpeed();
|
final double speed = getMoveSpeed();
|
||||||
if ((speed <= 0) || isMovementDisabled())
|
if ((speed <= 0) || isMovementDisabled())
|
||||||
|
Loading…
Reference in New Issue
Block a user