v0.9.2b: prevented pitfall traps from affecting shops and locked chests
This commit is contained in:
+3
-1
@@ -91,7 +91,9 @@ public class PitfallTrap extends Trap {
|
||||
|
||||
Heap heap = Dungeon.level.heaps.get(cell);
|
||||
|
||||
if (heap != null) {
|
||||
if (heap != null && heap.type != Heap.Type.FOR_SALE
|
||||
&& heap.type != Heap.Type.LOCKED_CHEST
|
||||
&& heap.type != Heap.Type.CRYSTAL_CHEST) {
|
||||
for (Item item : heap.items) {
|
||||
Dungeon.dropToChasm(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user