From e4f7febe69bf37db1f569c9d634a00c0994bd703 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 30 Oct 2008 14:44:29 +0000 Subject: Simplify. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7303 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index 17b237acfd..f0162a5e3a 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -1410,7 +1410,7 @@ int melee_attack::player_apply_weapon_bonuses(int damage) if (get_equip_race(*weapon) == ISFLAG_ORCISH && you.species == SP_HILL_ORC) { - if (you.religion == GOD_BEOGH && !you.penance[GOD_BEOGH]) + if (you.religion == GOD_BEOGH && !player_under_penance()) { #ifdef DEBUG_DIAGNOSTICS const int orig_damage = damage; @@ -2736,7 +2736,7 @@ int melee_attack::player_to_hit(bool random_factor) your_to_hit += (random_factor && coinflip() ? 2 : 1); } else if (get_equip_race(*weapon) == ISFLAG_ORCISH - && you.religion == GOD_BEOGH && !you.penance[GOD_BEOGH]) + && you.religion == GOD_BEOGH && !player_under_penance()) { your_to_hit++; } -- cgit v1.2.3-54-g00ecf