diff options
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 28cac3250c..b3d7218db1 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6382,14 +6382,12 @@ bool player::is_holy() const bool player::is_unholy() const { - const mon_holy_type holi = holiness(); - - return (holi == MH_UNDEAD || holi == MH_DEMONIC); + return (holiness() == MH_DEMONIC); } bool player::is_evil() const { - if (is_unholy()) + if (holiness() == MH_UNDEAD) return (true); if (is_evil_god(religion)) |