diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-20 22:49:05 +0200 |
commit | 145ea9e004c6014c790abb8d7b81f7f1547af3b9 (patch) | |
tree | f11869d7682a9e97a335b2baeba7458db6ff4473 /src/spells1.cc | |
parent | ca3fab4c43e155494e7eddfede551f3ced7ddad0 (diff) |
Change flag_set bool conversion to 'explicit'
Diffstat (limited to 'src/spells1.cc')
-rw-r--r-- | src/spells1.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spells1.cc b/src/spells1.cc index 8e109a77..2b34e98c 100644 --- a/src/spells1.cc +++ b/src/spells1.cc @@ -6622,7 +6622,7 @@ bool_ project_m(int who, int r, int y, int x, int dam, int typ) if ((who > 0) && (dam > m_ptr->hp)) dam = m_ptr->hp; } - if (do_pois && (!(r_ptr->flags & RF_IM_POIS)) && (!(r_ptr->flags & SF_BR_POIS)) && hurt_monster(m_ptr)) + if (do_pois && (r_ptr->flags & RF_IM_POIS).empty() && (r_ptr->spells & SF_BR_POIS).empty() && hurt_monster(m_ptr)) { if (m_ptr->poisoned) note = " is more poisoned."; else note = " is poisoned."; |