Macros for checking is object artifact
This commit is contained in:
@@ -366,8 +366,8 @@ getmattk(struct monst *magr, struct monst *mdef,
|
||||
&& (magr->mcan
|
||||
|| (weap && ((weap->otyp == CORPSE
|
||||
&& touch_petrifies(&mons[weap->corpsenm]))
|
||||
|| weap->oartifact == ART_STORMBRINGER
|
||||
|| weap->oartifact == ART_VORPAL_BLADE)))) {
|
||||
|| is_art(weap, ART_STORMBRINGER)
|
||||
|| is_art(weap, ART_VORPAL_BLADE))))) {
|
||||
*alt_attk_buf = *attk;
|
||||
attk = alt_attk_buf;
|
||||
attk->adtyp = AD_PHYS;
|
||||
|
||||
Reference in New Issue
Block a user