Update mhitm.c

szy_
pmje2o5iu 1 year ago
parent fb284cd612
commit a1973b1aa0

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

Loading…
Cancel
Save