Disable move to pawn while attacking.

This commit is contained in:
MobiusDev 2018-08-09 00:57:11 +00:00
parent c76e62fd90
commit 284bf4d631
7 changed files with 14 additions and 14 deletions

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset)
{
// Check if actor can move
if (!_actor.isMovementDisabled())
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow())
{
if (offset < 10)
{
@ -525,7 +525,7 @@ public abstract class AbstractAI implements Ctrl
*/
protected void moveTo(int x, int y, int z)
{
// Chek if actor can move
// Check if actor can move
if (!_actor.isMovementDisabled())
{
// Set AI movement data

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset)
{
// Check if actor can move
if (!_actor.isMovementDisabled())
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow())
{
if (offset < 10)
{
@ -525,7 +525,7 @@ public abstract class AbstractAI implements Ctrl
*/
protected void moveTo(int x, int y, int z)
{
// Chek if actor can move
// Check if actor can move
if (!_actor.isMovementDisabled())
{
// Set AI movement data

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset)
{
// Check if actor can move
if (!_actor.isMovementDisabled())
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow())
{
if (offset < 10)
{
@ -525,7 +525,7 @@ public abstract class AbstractAI implements Ctrl
*/
protected void moveTo(int x, int y, int z)
{
// Chek if actor can move
// Check if actor can move
if (!_actor.isMovementDisabled())
{
// Set AI movement data

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset)
{
// Check if actor can move
if (!_actor.isMovementDisabled())
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow())
{
if (offset < 10)
{
@ -525,7 +525,7 @@ public abstract class AbstractAI implements Ctrl
*/
protected void moveTo(int x, int y, int z)
{
// Chek if actor can move
// Check if actor can move
if (!_actor.isMovementDisabled())
{
// Set AI movement data

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset)
{
// Check if actor can move
if (!_actor.isMovementDisabled())
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow())
{
if (offset < 10)
{
@ -525,7 +525,7 @@ public abstract class AbstractAI implements Ctrl
*/
protected void moveTo(int x, int y, int z)
{
// Chek if actor can move
// Check if actor can move
if (!_actor.isMovementDisabled())
{
// Set AI movement data

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset)
{
// Check if actor can move
if (!_actor.isMovementDisabled())
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow())
{
if (offset < 10)
{
@ -525,7 +525,7 @@ public abstract class AbstractAI implements Ctrl
*/
protected void moveTo(int x, int y, int z)
{
// Chek if actor can move
// Check if actor can move
if (!_actor.isMovementDisabled())
{
// Set AI movement data

View File

@ -438,7 +438,7 @@ public abstract class AbstractAI implements Ctrl
protected void moveToPawn(L2Object pawn, int offset)
{
// Check if actor can move
if (!_actor.isMovementDisabled())
if (!_actor.isMovementDisabled() && !_actor.isAttackingNow())
{
if (offset < 10)
{
@ -525,7 +525,7 @@ public abstract class AbstractAI implements Ctrl
*/
protected void moveTo(int x, int y, int z)
{
// Chek if actor can move
// Check if actor can move
if (!_actor.isMovementDisabled())
{
// Set AI movement data