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

no more pushing statues on arrow/fire traps

This commit is contained in:
Zeno Rogue 2019-01-03 03:19:51 +01:00
parent e36246e392
commit cded55423b

View File

@ -827,8 +827,9 @@ bool sharkpassable(cell *w, cell *c) {
} }
bool canPushStatueOn(cell *c) { bool canPushStatueOn(cell *c) {
return passable(c, NULL, P_MONSTER) && c->wall != waBoat && !snakelevel(c) && return passable(c, NULL, P_MONSTER) && !snakelevel(c) &&
!isWorm(c->monst) && !isReptile(c->wall) && !peace::on; !isWorm(c->monst) && !isReptile(c->wall) && !peace::on &&
!among(c->wall, waBoat, waFireTrap, waArrowTrap);
} }
void moveBoat(cell *to, cell *from, int direction_hint) { void moveBoat(cell *to, cell *from, int direction_hint) {