… | |
… | |
1497 | /* If there is nothing living on this space, no need to go further */ |
1497 | /* If there is nothing living on this space, no need to go further */ |
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 |
1502 | if (caster && caster->contr |
1503 | && caster->contr |
1503 | && caster->contr->darkness_at (m, nx, ny) == LOS_BLOCKED) |
1504 | && caster->contr->darkness_at (m, nx, ny) == LOS_BLOCKED) |
1504 | continue; |
1505 | continue; |
1505 | |
1506 | |
1506 | for (tmp = GET_MAP_TOP (m, nx, ny); tmp; tmp = tmp->below) |
1507 | for (tmp = GET_MAP_TOP (m, nx, ny); tmp; tmp = tmp->below) |
1507 | if (QUERY_FLAG (tmp, FLAG_MONSTER)) |
1508 | if (QUERY_FLAG (tmp, FLAG_MONSTER)) |