Make hero polyed into fog cloud emit clouds

Also prevent cloud creation giving a message, if it was a single
cloud on hero and deals no damage.
This commit is contained in:
Pasi Kallinen
2024-04-04 12:15:39 +03:00
parent 7f1bbdfb0e
commit f0fdd3c371
5 changed files with 28 additions and 6 deletions

View File

@@ -1016,12 +1016,7 @@ movemon_singlemon(struct monst *mtmp)
if (mon_offmap(mtmp))
return FALSE;
if (mtmp->data == &mons[PM_FOG_CLOUD]) {
NhRegion *reg = visible_region_at(mtmp->mx, mtmp->my);
if (!reg)
create_gas_cloud(mtmp->mx, mtmp->my, 1, 0); /* harmless vapor */
}
m_everyturn_effect(mtmp);
/* Find a monster that we have not treated yet. */
if (mtmp->movement < NORMAL_SPEED)