1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 18:54:48 +00:00

allies did not avoid 1-stunned lancers

This commit is contained in:
Zeno Rogue 2019-07-28 11:09:33 +02:00
parent 5f82d164cf
commit 9b8b2f638c

View File

@ -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;