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:
commit
78e817c70b
2
game.cpp
2
game.cpp
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user