MCPcopy Create free account
hub / github.com/NetHack/NetHack / mcast_disappear

Function mcast_disappear

src/mcastu.c:489–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489staticfn void
490mcast_disappear(struct monst *mtmp)
491{
492 if (!mtmp->minvis && !mtmp->invis_blkd) {
493 if (canseemon(mtmp))
494 pline_mon(mtmp, "%s suddenly %s!", Monnam(mtmp),
495 !See_invisible ? "disappears" : "becomes transparent");
496 mon_set_minvis(mtmp, FALSE);
497 if (cansee(mtmp->mx, mtmp->my) && !canspotmon(mtmp))
498 map_invisible(mtmp->mx, mtmp->my);
499 } else
500 impossible("no reason for monster to cast disappear spell?");
501}
502
503staticfn void
504mcast_stun_you(int dmg)

Callers 1

mcast_spellFunction · 0.85

Calls 6

canseemonFunction · 0.85
pline_monFunction · 0.85
MonnamFunction · 0.85
mon_set_minvisFunction · 0.85
map_invisibleFunction · 0.85
impossibleFunction · 0.70

Tested by

no test coverage detected