From 1587373bced888a35c938e32bdaf1a3de7e48bae Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 5 Nov 2009 18:35:11 -0600 Subject: Simplify player::res_holy_energy() a bit. --- crawl-ref/source/player.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 7814a4da7c..591a6d68fa 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6490,13 +6490,13 @@ int player::res_sticky_flame() const int player::res_holy_energy(const actor *attacker) const { - if (is_evil_god(this->religion)) + if (is_evil()) return (-1); if (is_unholy()) return (-2); - if (is_good_god(this->religion)) + if (is_good_god(religion)) return (1); return (0); -- cgit v1.2.3-54-g00ecf