From 1c7e145a0a082b50c22ce53b6db7fccfc6ad9e31 Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 9 Oct 2008 13:59:30 +0000 Subject: Rewrite of beam.cc: put all beam data in one place. Might be buggy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7201 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells1.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/spells1.cc') diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc index 56a49cff5c..04274d833e 100644 --- a/crawl-ref/source/spells1.cc +++ b/crawl-ref/source/spells1.cc @@ -1498,10 +1498,10 @@ bool cast_sure_blade(int power) { bool success = false; - if (you.equip[EQ_WEAPON] == -1) + if (!you.weapon()) mpr("You aren't wielding a weapon!"); - else if (weapon_skill( you.inv[you.equip[EQ_WEAPON]].base_type, - you.inv[you.equip[EQ_WEAPON]].sub_type) != SK_SHORT_BLADES) + else if (weapon_skill(you.weapon()->base_type, + you.weapon()->sub_type) != SK_SHORT_BLADES) { mpr("You cannot bond with this weapon."); } -- cgit v1.2.3-54-g00ecf