1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 15:00:26 +00:00

Curse of Repulsion now activates plates and other effects

This commit is contained in:
Zeno Rogue 2021-05-22 02:06:58 +02:00
parent 6aa4eef3f6
commit bb47ad99e6

View File

@ -36,10 +36,11 @@ EX bool doPickupItemsWithMagnetism(cell *c) {
cw += wstep;
for(int j=1; j<c3->type; 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;
}
}