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
|
@Override
|
||||||
protected boolean act() {
|
protected boolean act() {
|
||||||
if (alignment == Alignment.ENEMY
|
if (alignment != Alignment.ALLY
|
||||||
&& Dungeon.level.heroFOV[pos]
|
&& Dungeon.level.heroFOV[pos]
|
||||||
&& Dungeon.hero.armorAbility instanceof Ratmogrify){
|
&& Dungeon.hero.armorAbility instanceof Ratmogrify){
|
||||||
alignment = Alignment.NEUTRAL;
|
alignment = Alignment.NEUTRAL;
|
||||||
|
if (enemy == Dungeon.hero) enemy = null;
|
||||||
if (state == SLEEPING) state = WANDERING;
|
if (state == SLEEPING) state = WANDERING;
|
||||||
}
|
}
|
||||||
return super.act();
|
return super.act();
|
||||||
|
|||||||
Reference in New Issue
Block a user