1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-11 20:57:41 +00:00

Merge pull request #28 from Quuxplusone/thumper-and-boat

Pushing a thumper through a boat is no longer allowed.
This commit is contained in:
Zeno Rogue
2018-06-12 21:43:31 +02:00
committed by GitHub

View File

@@ -7235,7 +7235,7 @@ void pushThumper(cell *th, cell *cto) {
} }
bool canPushThumperOn(cell *tgt, cell *thumper, cell *player) { bool canPushThumperOn(cell *tgt, cell *thumper, cell *player) {
if(tgt->wall == waBoat) return false; if(tgt->wall == waBoat || tgt->wall == waStrandedBoat) return false;
if(isReptile(tgt->wall)) return false; if(isReptile(tgt->wall)) return false;
if(isWatery(tgt) && !tgt->monst) if(isWatery(tgt) && !tgt->monst)
return true; return true;