Disable move to pawn while casting.
This commit is contained in:
parent
352fd5f4cc
commit
0570cee9d5
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user