diff options
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/religion.cc | 4 | ||||
-rw-r--r-- | crawl-ref/source/religion.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index 36bfd110ec..cc198b1ec7 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -5902,8 +5902,8 @@ int piety_breakpoint(int i) // Returns true if the Shining One doesn't mind your using unchivalric // attacks on this creature. -bool tso_unchivalric_attack_safe_monster(const actor *act) +bool tso_unchivalric_attack_safe_monster(const monsters *mon) { - const mon_holy_type holiness = act->holiness(); + const mon_holy_type holiness = mon->holiness(); return (holiness != MH_NATURAL && holiness != MH_HOLY); } diff --git a/crawl-ref/source/religion.h b/crawl-ref/source/religion.h index 332a0fa703..044130133b 100644 --- a/crawl-ref/source/religion.h +++ b/crawl-ref/source/religion.h @@ -108,7 +108,7 @@ bool is_evil_item(const item_def& item); bool god_dislikes_item_handling(const item_def &item); bool ely_destroy_weapons(); bool trog_burn_books(); -bool tso_unchivalric_attack_safe_monster(const actor *act); +bool tso_unchivalric_attack_safe_monster(const monsters *mon); void mons_make_god_gift(monsters *mon, god_type god = you.religion); bool mons_is_god_gift(const monsters *mon, god_type god = you.religion); |