v0.8.0: further fixes for Bee AI
This commit is contained in:
parent
ea16ddf02a
commit
0cfc50a5dc
|
@ -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)){
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user