v3.1.0: fixed Tengu not jumping anymore if he can't see an enemy
This commit is contained in:
@@ -246,7 +246,7 @@ public class Tengu extends Mob {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (enemy == null) enemy = chooseEnemy();
|
if (enemy == null) enemy = chooseEnemy();
|
||||||
if (enemy == null) return;
|
if (enemy == null) enemy = Dungeon.hero; //jump away from hero if nothing else is being targeted
|
||||||
|
|
||||||
int newPos;
|
int newPos;
|
||||||
if (Dungeon.level instanceof PrisonBossLevel){
|
if (Dungeon.level instanceof PrisonBossLevel){
|
||||||
|
|||||||
Reference in New Issue
Block a user