v3.2.0: fixed ratmog change causing summoned ally rats being set neutral

This commit is contained in:
Evan Debenham
2025-07-22 14:37:25 -04:00
parent 3be8a06db4
commit 3977ae5e12

View File

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