… | |
… | |
1498 | if (!(mflags & P_IS_ALIVE)) |
1498 | if (!(mflags & P_IS_ALIVE)) |
1499 | continue; |
1499 | continue; |
1500 | |
1500 | |
1501 | // players can only affect spaces that they can actually see |
1501 | // players can only affect spaces that they can actually see |
1502 | if (caster && caster->contr |
1502 | if (caster && caster->contr |
1503 | && caster->contr->visibility_at (m, nx, ny) < 70) |
1503 | && caster->contr->darkness_at (m, nx, ny) == LOS_BLOCKED) |
1504 | continue; |
1504 | continue; |
1505 | |
1505 | |
1506 | for (tmp = GET_MAP_TOP (m, nx, ny); tmp; tmp = tmp->below) |
1506 | for (tmp = GET_MAP_TOP (m, nx, ny); tmp; tmp = tmp->below) |
1507 | if (QUERY_FLAG (tmp, FLAG_MONSTER)) |
1507 | if (QUERY_FLAG (tmp, FLAG_MONSTER)) |
1508 | break; |
1508 | break; |