Disable move to pawn while casting.

This commit is contained in:
MobiusDev 2018-08-31 10:36:44 +00:00
parent 352fd5f4cc
commit 0570cee9d5
7 changed files with 7 additions and 7 deletions

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset) protected void moveToPawn(L2Object pawn, int offset)
{ {
// Check if actor can move // Check if actor can move
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow()) if (!_actor.isMovementDisabled() && !_actor.isAttackingNow() && !_actor.isCastingNow())
{ {
if (offset < 10) if (offset < 10)
{ {

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset) protected void moveToPawn(L2Object pawn, int offset)
{ {
// Check if actor can move // Check if actor can move
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow()) if (!_actor.isMovementDisabled() && !_actor.isAttackingNow() && !_actor.isCastingNow())
{ {
if (offset < 10) if (offset < 10)
{ {

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset) protected void moveToPawn(L2Object pawn, int offset)
{ {
// Check if actor can move // Check if actor can move
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow()) if (!_actor.isMovementDisabled() && !_actor.isAttackingNow() && !_actor.isCastingNow())
{ {
if (offset < 10) if (offset < 10)
{ {

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset) protected void moveToPawn(L2Object pawn, int offset)
{ {
// Check if actor can move // Check if actor can move
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow()) if (!_actor.isMovementDisabled() && !_actor.isAttackingNow() && !_actor.isCastingNow())
{ {
if (offset < 10) if (offset < 10)
{ {

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset) protected void moveToPawn(L2Object pawn, int offset)
{ {
// Check if actor can move // Check if actor can move
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow()) if (!_actor.isMovementDisabled() && !_actor.isAttackingNow() && !_actor.isCastingNow())
{ {
if (offset < 10) if (offset < 10)
{ {

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset) protected void moveToPawn(L2Object pawn, int offset)
{ {
// Check if actor can move // Check if actor can move
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow()) if (!_actor.isMovementDisabled() && !_actor.isAttackingNow() && !_actor.isCastingNow())
{ {
if (offset < 10) if (offset < 10)
{ {

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset) protected void moveToPawn(L2Object pawn, int offset)
{ {
// Check if actor can move // Check if actor can move
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow()) if (!_actor.isMovementDisabled() && !_actor.isAttackingNow() && !_actor.isCastingNow())
{ {
if (offset < 10) if (offset < 10)
{ {