v0.2.4d: added safety checks to some mod ai state modifiers, fixing some bugs
This commit is contained in:
@@ -49,7 +49,7 @@ public class Blindweed extends Plant {
|
||||
Buff.prolong( ch, Blindness.class, len );
|
||||
Buff.prolong( ch, Cripple.class, len );
|
||||
if (ch instanceof Mob) {
|
||||
((Mob)ch).state = ((Mob)ch).WANDERING;
|
||||
if (((Mob)ch).state == ((Mob)ch).HUNTING) ((Mob)ch).state = ((Mob)ch).WANDERING;
|
||||
((Mob)ch).beckon( Dungeon.level.randomDestination() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user