Add helpless monster macro

This commit is contained in:
Pasi Kallinen
2022-03-18 10:19:04 +02:00
parent 480ba917a1
commit 39acd095b2
21 changed files with 66 additions and 68 deletions
+3 -3
View File
@@ -527,7 +527,7 @@ find_defensive(struct monst* mtmp)
continue;
if ((mon = m_at(xx, yy)) != 0 && is_mercenary(mon->data)
&& mon->data != &mons[PM_GUARD]
&& (mon->msleeping || !mon->mcanmove)) {
&& helpless(mon)) {
g.m.defensive = obj;
g.m.has_defense = MUSE_BUGLE;
goto toot; /* double break */
@@ -2521,7 +2521,7 @@ munstone(struct monst* mon, boolean by_you)
if (resists_ston(mon))
return FALSE;
if (mon->meating || !mon->mcanmove || mon->msleeping)
if (mon->meating || helpless(mon))
return FALSE;
mon->mstrategy &= ~STRAT_WAITFORU;
@@ -2675,7 +2675,7 @@ munslime(struct monst* mon, boolean by_you)
if (slimeproof(mptr))
return FALSE;
if (mon->meating || !mon->mcanmove || mon->msleeping)
if (mon->meating || helpless(mon))
return FALSE;
mon->mstrategy &= ~STRAT_WAITFORU;