v3.0.0: fixed a crash error in new AI logic
This commit is contained in:
@@ -784,7 +784,7 @@ public abstract class Mob extends Char {
|
||||
//assume the hero is hitting us in these common cases
|
||||
if (src instanceof Wand || src instanceof ClericSpell || src instanceof ArmorAbility) {
|
||||
aggro(Dungeon.hero);
|
||||
target = enemy.pos;
|
||||
target = Dungeon.hero.pos;
|
||||
}
|
||||
} else {
|
||||
if (src instanceof Wand || src instanceof ClericSpell || src instanceof ArmorAbility) {
|
||||
|
||||
Reference in New Issue
Block a user