summaryrefslogtreecommitdiff
path: root/src/q_bounty.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
committerBardur Arantsson <bardur@scientician.net>2016-06-20 22:49:05 +0200
commit59b5314b6b7880cfda73f34aed03a700fd523017 (patch)
tree4b5255289c8216f2d7dcfac2824045e5c0acdc45 /src/q_bounty.cc
parentfa5083020d4cc4d6d7471b461c430d40ed36c02e (diff)
Rework RF{4,5,6}_* monster spell flags to flag_set<>
Diffstat (limited to 'src/q_bounty.cc')
-rw-r--r--src/q_bounty.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/q_bounty.cc b/src/q_bounty.cc
index 7af282bf..dac4fef7 100644
--- a/src/q_bounty.cc
+++ b/src/q_bounty.cc
@@ -2,6 +2,7 @@
#include "monster2.hpp"
#include "monster_race.hpp"
+#include "monster_spell_flag.hpp"
#include "object1.hpp"
#include "object2.hpp"
#include "object_type.hpp"
@@ -38,7 +39,7 @@ static bool_ lua_mon_hook_bounty(int r_idx)
if (r_ptr->flags7 & RF7_FRIENDLY) return (FALSE);
/* Accept only monsters that are not breeders */
- if (r_ptr->flags4 & RF4_MULTIPLY) return (FALSE);
+ if (r_ptr->spells & SF_MULTIPLY) return (FALSE);
/* Forbid joke monsters */
if (r_ptr->flags8 & RF8_JOKEANGBAND) return (FALSE);