v0.9.2b: prevented pitfall traps from affecting shops and locked chests
This commit is contained in:
parent
3e7a48d59b
commit
ee0bfb13c5
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user