From bb47ad99e67f8b07cd665e8e5dd2c1d1ffb18578 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 22 May 2021 02:06:58 +0200 Subject: [PATCH] Curse of Repulsion now activates plates and other effects --- items.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/items.cpp b/items.cpp index f46fe80e..f981f1b0 100644 --- a/items.cpp +++ b/items.cpp @@ -36,10 +36,11 @@ EX bool doPickupItemsWithMagnetism(cell *c) { cw += wstep; for(int j=1; jtype; j++) { cell *c4 = (cw+j).peek(); - if(!isNeighbor(c, c4) && !c4->item && passable(c4, c3, ZERO)) { + if(!isNeighbor(c, c4) && c3->item && !c4->item && passable(c4, c3, ZERO)) { changes.ccell(c3); changes.ccell(c4); c4->item = c3->item; + moveEffect(movei(c3, c4, (cw+j).spin), moDeadBird); c3->item = itNone; } }