Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Fix max lvl hell hounds getting stuck in fire (#333)
Browse files Browse the repository at this point in the history
There were some cases where hell hounds would not be able to path out of fire, stay still and be non-responsive.
  • Loading branch information
percivalalb committed Jul 24, 2021
1 parent 66141fc commit 7099a0a
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -43,10 +43,15 @@ public boolean shouldExecute() {
return false;
}

boolean isInFire = this.isInDangerSpot(this.creature);
boolean isOnFire = this.creature.isBurning();

if (!isOnFire || this.creature.isImmuneToFire()) {
return false;
}

boolean isInFire = this.isInDangerSpot(this.creature);

if (!isInFire && !isOnFire) {
if (!isInFire) {
return false;
}

Expand Down

0 comments on commit 7099a0a

Please sign in to comment.