mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-15 22:27:38 +00:00
fixed a checkmate rule bug with Pikeman and (potentially killed) monster on the way
This commit is contained in:
2
game.cpp
2
game.cpp
@@ -1249,7 +1249,7 @@ bool monstersnear(stalemate1& sm) {
|
||||
if(c3->monst != moWitchSpeed && fast) continue;
|
||||
// cannot attack if the immediate cell is impassable (except flashwitches)
|
||||
if(c3->monst != moWitchFlash) {
|
||||
if(!passable(c2, c3, stalemate::isKilled(c2)?0:P_MONSTER)) continue;
|
||||
if(!passable(c2, c3, stalemate::isKilled(c2)?P_MONSTER:0)) continue;
|
||||
if(isPlayerOn(c2) && items[itOrbFire]) continue;
|
||||
}
|
||||
// flashwitches cannot attack if it would kill another enemy
|
||||
|
Reference in New Issue
Block a user