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