Skip to content

Commit

Permalink
More Lear fixes
Browse files Browse the repository at this point in the history
Thanks, Scaramouche
  • Loading branch information
Floodkiller committed Apr 6, 2019
1 parent 079cee7 commit 7e9b00d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crawl-ref/source/actor.cc
Expand Up @@ -216,7 +216,11 @@ bool actor::res_corr(bool calc_unid, bool items) const

bool actor::cloud_immune(bool calc_unid, bool items) const
{
return items && (wearing_ego(EQ_CLOAK, SPARM_CLOUD_IMMUNE, calc_unid));
const item_def *body_armour = slot_item(EQ_BODY_ARMOUR);
return items
&& (wearing_ego(EQ_CLOAK, SPARM_CLOUD_IMMUNE, calc_unid)
|| (body_armour && (is_unrandom_artefact(*body_armour, UNRAND_RCLOUDS)
|| is_unrandom_artefact(*body_armour, UNRAND_LEAR))));
}

bool actor::holy_wrath_susceptible() const
Expand Down
1 change: 0 additions & 1 deletion crawl-ref/source/art-data.txt
Expand Up @@ -761,7 +761,6 @@ PLUS: 27
COLOUR: ETC_GOLD
TILE: urand_lear
TILE_EQ: lears_hauberk
BRAND: SPARM_CLOUD_IMMUNE
BOOL: special

NAME: skin of Zhor
Expand Down

0 comments on commit 7e9b00d

Please sign in to comment.