v3.2.5: fixed rats made neutral due to ratmog attacking the hero
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user