v0.8.0: further fixes for Bee AI

This commit is contained in:
Evan Debenham 2019-12-06 17:57:19 -05:00
parent ea16ddf02a
commit 0cfc50a5dc

View File

@ -147,7 +147,7 @@ public class Bee extends Mob {
}else { }else {
//try to find a new enemy in these circumstances //try to find a new enemy in these circumstances
if (enemy == null || !enemy.isAlive() || state == WANDERING if (enemy == null || !enemy.isAlive() || !Actor.chars().contains(enemy) || state == WANDERING
|| Dungeon.level.distance(enemy.pos, potPos) > 3 || Dungeon.level.distance(enemy.pos, potPos) > 3
|| (alignment == Alignment.ALLY && enemy.alignment == Alignment.ALLY)){ || (alignment == Alignment.ALLY && enemy.alignment == Alignment.ALLY)){