1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-31 18:02:26 +01:00

Fix fiery artifacts ignoring invfireres

Aside: why is the "usage" part of the macro, and not used during destroy_item to abort item destruction? *sigh*
This commit is contained in:
NeroOneTrueKing 2021-11-03 22:05:01 -05:00
parent 90a66df480
commit 4e237b8799

View file

@ -4326,7 +4326,7 @@ boolean * messaged;
hittee, !spec_dbon_applies ? '.' : '!');
*messaged = TRUE;
}
if(oartifact != ART_PROFANED_GREATSCYTHE){
if(oartifact != ART_PROFANED_GREATSCYTHE && !UseInvFire_res(mdef)){
if (!rn2(4)) (void) destroy_item(mdef, POTION_CLASS, AD_FIRE);
if (!rn2(4)) (void) destroy_item(mdef, SCROLL_CLASS, AD_FIRE);
if (!rn2(7)) (void) destroy_item(mdef, SPBOOK_CLASS, AD_FIRE);