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:
parent
569b4e495d
commit
93bb7120be
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue