1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +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
commit 78e817c70b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7235,7 +7235,7 @@ void pushThumper(cell *th, cell *cto) {
}
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(isWatery(tgt) && !tgt->monst)
return true;