v2.1.0: fixed Tengu smoke bombs destroying each other visually
This commit is contained in:
@@ -631,18 +631,18 @@ public class Tengu extends Mob {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Heap h = Dungeon.level.heaps.get(cell);
|
|
||||||
if (h != null) {
|
|
||||||
for (Item i : h.items.toArray(new Item[0])) {
|
|
||||||
if (i instanceof BombItem) {
|
|
||||||
h.remove(i);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Heap h = Dungeon.level.heaps.get(bombPos);
|
||||||
|
if (h != null) {
|
||||||
|
for (Item i : h.items.toArray(new Item[0])) {
|
||||||
|
if (i instanceof BombItem) {
|
||||||
|
h.remove(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Sample.INSTANCE.play(Assets.Sounds.BLAST);
|
Sample.INSTANCE.play(Assets.Sounds.BLAST);
|
||||||
detach();
|
detach();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user