diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java index 02cf22739..c9f235175 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java @@ -556,10 +556,16 @@ public class Tengu extends Mob { int targetCell = -1; - //Targets closest cell which is adjacent to target + //Targets closest cell which is adjacent to target and has no existing bombs for (int i : PathFinder.NEIGHBOURS8){ int cell = target.pos + i; - if (!Dungeon.level.solid[cell] && + boolean bombHere = false; + for (BombAbility b : thrower.buffs(BombAbility.class)){ + if (b.bombPos == cell){ + bombHere = true; + } + } + if (!bombHere && !Dungeon.level.solid[cell] && (targetCell == -1 || Dungeon.level.trueDistance(cell, thrower.pos) < Dungeon.level.trueDistance(targetCell, thrower.pos))){ targetCell = cell; }