v3.2.5: fixed rats made neutral due to ratmog attacking the hero

This commit is contained in:
Evan Debenham
2025-09-18 13:23:32 -04:00
parent c471924d58
commit d7ab66058b

View File

@@ -41,10 +41,11 @@ public class Rat extends Mob {
@Override
protected boolean act() {
if (alignment == Alignment.ENEMY
if (alignment != Alignment.ALLY
&& Dungeon.level.heroFOV[pos]
&& Dungeon.hero.armorAbility instanceof Ratmogrify){
alignment = Alignment.NEUTRAL;
if (enemy == Dungeon.hero) enemy = null;
if (state == SLEEPING) state = WANDERING;
}
return super.act();