Method isVisible should be named isSpawned to reflect what it does.

This commit is contained in:
MobiusDevelopment
2020-07-11 07:16:59 +00:00
parent 0ac09f876f
commit ae2e9409c6
54 changed files with 102 additions and 114 deletions

View File

@@ -635,7 +635,7 @@ public class FortSiegeGuardAI extends CreatureAI implements Runnable
@Override
public void onEvtThink()
{
// if(getIntention() != AI_INTENTION_IDLE && (!_actor.isVisible() || !_actor.hasAI() || !_actor.isKnownPlayers()))
// if(getIntention() != AI_INTENTION_IDLE && (!_actor.isSpawned() || !_actor.hasAI() || !_actor.isKnownPlayers()))
// setIntention(AI_INTENTION_IDLE);
// Check if the actor can't use skills and if a thinking action isn't already in progress

View File

@@ -636,7 +636,7 @@ public class SiegeGuardAI extends CreatureAI implements Runnable
@Override
public void onEvtThink()
{
// if(getIntention() != AI_INTENTION_IDLE && (!_actor.isVisible() || !_actor.hasAI() || !_actor.isKnownPlayers()))
// if(getIntention() != AI_INTENTION_IDLE && (!_actor.isSpawned() || !_actor.hasAI() || !_actor.isKnownPlayers()))
// setIntention(AI_INTENTION_IDLE);
// Check if the thinking action is already in progress