v0.2.4b: minor tweaks to mob targeting behaviour
This commit is contained in:
@@ -169,11 +169,9 @@ public abstract class Mob extends Char {
|
||||
|
||||
//resets target if: the target is dead, the target has been lost (wandering)
|
||||
//or if the mob is amoked and targeting the hero (will try to target something else)
|
||||
//or if the mob is not amoked, and is targeting a hostile mob
|
||||
if ( enemy != null &&
|
||||
!enemy.isAlive() || state == WANDERING ||
|
||||
(buff( Amok.class ) != null && enemy == Dungeon.hero ) ||
|
||||
(buff( Amok.class ) == null && enemy instanceof Mob && ((Mob) enemy).hostile ))
|
||||
(buff( Amok.class ) != null && enemy == Dungeon.hero ))
|
||||
enemy = null;
|
||||
|
||||
//if there is no current target, find a new one.
|
||||
|
||||
Reference in New Issue
Block a user