mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-23 00:30:26 +00:00
Curse of Repulsion now activates plates and other effects
This commit is contained in:
parent
6aa4eef3f6
commit
bb47ad99e6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user