Previous change should check for all non attackables.

This commit is contained in:
MobiusDevelopment 2019-03-31 19:05:48 +00:00
parent 16d00294b8
commit 57fa096ae7
11 changed files with 22 additions and 22 deletions

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }

View File

@ -599,8 +599,8 @@ public abstract class AbstractAI implements Ctrl
*/ */
public void clientStartAutoAttack() public void clientStartAutoAttack()
{ {
// Non monster NPCs should not get in combat. // Non attackable NPCs should not get in combat.
if (_actor.isNpc() && !_actor.isMonster()) if (_actor.isNpc() && !_actor.isAttackable())
{ {
return; return;
} }