Skip to content

Commit

Permalink
Shields can be dipped into fountains/toilets to test for properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Oct 31, 2023
1 parent 6eafcd5 commit 74c3562
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/artifact.c
Original file line number Diff line number Diff line change
Expand Up @@ -4138,8 +4138,9 @@ struct obj *obj;
{
int ad_type = 0, oprops;

/* Only weapons work this way ("attacking" the water) */
if (!((obj->oclass == WEAPON_CLASS) || is_weptool(obj)))
/* Only weapons/shields work this way ("attacking" the water) */
if (!((obj->oclass == WEAPON_CLASS) || is_weptool(obj)
|| is_shield(obj)))
return FALSE;

if (obj->oartifact)
Expand Down

0 comments on commit 74c3562

Please sign in to comment.