v2.1.0: fixed errors with pitfall trap effect stacking, and visuals
This commit is contained in:
+2
-1
@@ -53,7 +53,7 @@ public class PitfallTrap extends Trap {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
DelayedPit p = Buff.affect(Dungeon.hero, DelayedPit.class, 1);
|
DelayedPit p = Buff.append(Dungeon.hero, DelayedPit.class, 1);
|
||||||
p.depth = Dungeon.depth;
|
p.depth = Dungeon.depth;
|
||||||
p.pos = pos;
|
p.pos = pos;
|
||||||
|
|
||||||
@@ -105,6 +105,7 @@ public class PitfallTrap extends Trap {
|
|||||||
}
|
}
|
||||||
heap.sprite.kill();
|
heap.sprite.kill();
|
||||||
GameScene.discard(heap);
|
GameScene.discard(heap);
|
||||||
|
heap.sprite.drop();
|
||||||
Dungeon.level.heaps.remove(cell);
|
Dungeon.level.heaps.remove(cell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user