mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-17 10:44:48 +00:00
allies did not avoid 1-stunned lancers
This commit is contained in:
parent
5f82d164cf
commit
9b8b2f638c
2
game.cpp
2
game.cpp
@ -1316,7 +1316,7 @@ bool monstersnear(stalemate1& sm) {
|
|||||||
if(!logical_adjacent(c3, c3->monst, c2) || !logical_adjacent(c2, c3->monst, c))
|
if(!logical_adjacent(c3, c3->monst, c2) || !logical_adjacent(c2, c3->monst, c))
|
||||||
continue;
|
continue;
|
||||||
if(elec::affected(c3) || stalemate::isKilled(c3)) continue;
|
if(elec::affected(c3) || stalemate::isKilled(c3)) continue;
|
||||||
if(c3->stuntime) continue;
|
if(c3->stuntime > (sm.who == moPlayer ? 0 : 1)) continue;
|
||||||
// speedwitches can only attack not-fastened monsters,
|
// speedwitches can only attack not-fastened monsters,
|
||||||
// others can only attack if the move is not fastened
|
// others can only attack if the move is not fastened
|
||||||
if(c3->monst == moWitchSpeed && items[itOrbSpeed]) continue;
|
if(c3->monst == moWitchSpeed && items[itOrbSpeed]) continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user