diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java index 5efc242f1..dce4966e0 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java @@ -179,15 +179,10 @@ public abstract class Mob extends Char { } } - //resets target if: the target is dead, the target has been lost (wandering) + //resets target if: there is no current target, the target is dead, the target has been lost (wandering) //or if the mob is amoked/corrupted and targeting the hero (will try to target something else) - if ( enemy != null && - !enemy.isAlive() || state == WANDERING || - ((buff( Amok.class ) != null || buff(Corruption.class) != null) && enemy == Dungeon.hero )) - enemy = null; - - //if there is no current target, find a new one. - if (enemy == null) { + if ( enemy == null || !enemy.isAlive() || state == WANDERING || + ((buff( Amok.class ) != null || buff(Corruption.class) != null) && enemy == Dungeon.hero )) { HashSet enemies = new HashSet();