1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-03 05:45:08 +01:00

Bugfix: Check is_chaotic_mon instead of maligntyp in destroy weapon.

The latter doesn't account for priests of gods etc.
This commit is contained in:
chris 2023-08-17 20:01:47 -04:00
parent 569b4e495d
commit 93bb7120be

View file

@ -5857,7 +5857,7 @@ int tary;
else if (canseemon(mdef))
pline("%s weapon is damaged!", s_suffix(Monnam(mdef)));
}
else if (youdef && (rn2(3) && magr->data->maligntyp < 0) && !Hallucination) {
else if (youdef && (rn2(3) && is_chaotic_mon(magr)) && !Hallucination) {
if (malediction)
verbalize("%s, your %s broken!", plname, aobjnam(otmp, "are"));
Your("%s to pieces in your %s!", aobjnam(otmp, "shatter"), hands);