Update mhitm.c

szy_
pmje2o5iu 1 year ago
parent fb284cd612
commit a1973b1aa0

@ -479,8 +479,8 @@ mattackm(
break; break;
case AT_GAZE: case AT_GAZE:
strike = 0; strike = 0; // Set the strike value to 0, indicating that a physical attack does not occur
res[i] = gazemm(magr, mdef, mattk); res[i] = gazemm(magr, mdef, mattk); // Perform a gaze attack and store the result in the corresponding position of the res array
break; break;
case AT_EXPL: case AT_EXPL:
@ -1437,9 +1437,9 @@ xdrainenergym(struct monst *mon, boolean givemsg)
if (mon->mspec_used < 20 /* limit draining */ if (mon->mspec_used < 20 /* limit draining */
&& (attacktype(mon->data, AT_MAGC) && (attacktype(mon->data, AT_MAGC)
|| attacktype(mon->data, AT_BREA))) { || attacktype(mon->data, AT_BREA))) {
mon->mspec_used += d(2, 2); mon->mspec_used += d(2, 2);// Increase the monster's special ability used count by rolling 2d2
if (givemsg) if (givemsg)
pline("%s seems lethargic.", Monnam(mon)); pline("%s seems lethargic.", Monnam(mon));// Display a message indicating the monster seems lethargic
} }
} }

Loading…
Cancel
Save