From 0cfc50a5dcc00c047f6c486f743572ca643f3175 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 6 Dec 2019 17:57:19 -0500 Subject: [PATCH] v0.8.0: further fixes for Bee AI --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Bee.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Bee.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Bee.java index 988b0abde..3a8fceda1 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Bee.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Bee.java @@ -147,7 +147,7 @@ public class Bee extends Mob { }else { //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 || (alignment == Alignment.ALLY && enemy.alignment == Alignment.ALLY)){