v0.2.4d: added safety checks to some mod ai state modifiers, fixing some bugs

This commit is contained in:
Evan Debenham
2015-03-19 03:29:33 -04:00
parent e4db8ba4e3
commit d3899871ac
2 changed files with 2 additions and 2 deletions
@@ -93,7 +93,7 @@ public class RogueArmor extends ClassArmor {
for (Mob mob : Dungeon.level.mobs) {
if (Level.fieldOfView[mob.pos]) {
Buff.prolong( mob, Blindness.class, 2 );
mob.state = mob.WANDERING;
if (mob.state == mob.HUNTING) mob.state = mob.WANDERING;
mob.sprite.emitter().burst( Speck.factory( Speck.LIGHT ), 4 );
}
}