summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-12-27 19:25:32 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-12-27 19:25:32 +0300
commitdc3e12a4da48363a7cadb77f30b8e784d5f82acf (patch)
treedadef79197a359e2c24a68a32284b6b6c79eb536 /crawl-ref/source/fight.cc
parent507c3523d54cd2c15185f06f8be1f1ea353497d8 (diff)
downloadcrawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.tar.gz
crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.zip
Replace uses of item_cursed with item_def::cursed.
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 1543ddabb1..b2237a92cb 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -374,7 +374,7 @@ void melee_attack::check_hand_half_bonus_eligible()
&& !can_do_unarmed
&& !shield
&& weapon
- && !item_cursed(*weapon)
+ && !weapon->cursed()
&& hands == HANDS_HALF);
}
@@ -3832,7 +3832,7 @@ int melee_attack::player_to_hit(bool random_factor)
&& !can_do_unarmed
&& !shield
&& weapon
- && !item_cursed( *weapon )
+ && !weapon ->cursed()
&& hands == HANDS_HALF;
int your_to_hit = 15 + (calc_stat_to_hit_base() / 2);