monster can change form into a fog if necessary */
| 2362 | |
| 2363 | /* monster can change form into a fog if necessary */ |
| 2364 | boolean |
| 2365 | can_fog(struct monst *mtmp) |
| 2366 | { |
| 2367 | if (!(svm.mvitals[PM_FOG_CLOUD].mvflags & G_GENOD) && is_vampshifter(mtmp) |
| 2368 | && !Protection_from_shape_changers && !stuff_prevents_passage(mtmp)) |
| 2369 | return TRUE; |
| 2370 | return FALSE; |
| 2371 | } |
| 2372 | |
| 2373 | /* this is called when a vampire turns into a fog cloud in order to move |
| 2374 | under a closed door; if it was sensed via telepathy or seen via |
no test coverage detected