Orb of Freedom now considers active arrow traps as impassable

This commit is contained in:
Zeno Rogue 2018-06-28 10:40:25 +02:00
parent 2d6f7d4ed0
commit ad74267080
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ void checkFreedom(cell *cf) {
// todo leader
if(!passable(c2, c, P_ISPLAYER | P_MIRROR | P_LEADER)) continue;
if(eq(c2->aitmp, sval)) continue;
if(c2->wall == waArrowTrap && c2->wparam == 2) continue;
bool monsterhere = false;
for(int j=0; j<c2->type; j++) {
cell *c3 = c2->mov[j];