v3.2.5: fixed effects like aggro not clearing from downed ghouls
This commit is contained in:
@@ -294,6 +294,9 @@ public class Ghoul extends Mob {
|
|||||||
Dungeon.level.occupyCell( ghoul );
|
Dungeon.level.occupyCell( ghoul );
|
||||||
ghoul.sprite.idle();
|
ghoul.sprite.idle();
|
||||||
ghoul.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(Math.round(ghoul.HT/10f)), FloatingText.HEALING);
|
ghoul.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(Math.round(ghoul.HT/10f)), FloatingText.HEALING);
|
||||||
|
if (ghoul.enemy != null && ghoul.enemy.alignment == ghoul.alignment){
|
||||||
|
ghoul.enemy = null; //reset enemy
|
||||||
|
}
|
||||||
super.detach();
|
super.detach();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user