diff --git a/frontend/src/js/clue.ts b/frontend/src/js/clue.ts index 21509a3ae51651080d63e58603890768902d81c5..251e9d5c6794921b979229208a85352eea98e008 100644 --- a/frontend/src/js/clue.ts +++ b/frontend/src/js/clue.ts @@ -102,7 +102,8 @@ class Clue extends Phaser.GameObjects.Sprite { let intersect = true; intersect &&= clueBounds.left - pad < x; intersect &&= x < clueBounds.right + pad; - xs[i] += intersect; + const pileHeight = bounds.bottom - clueBounds.bottom; + xs[i] += (intersect ? 1 : 0) * pileHeight; }); });