diff options
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r-- | crawl-ref/source/spells3.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index 0d5f064560..aa9063d5e7 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -308,12 +308,12 @@ int airstrike(int power, dist &beam) return (success); } // end airstrike() -int cast_bone_shards(int power, bolt &beam) +bool cast_bone_shards(int power, bolt &beam) { bool success = false; if (you.equip[EQ_WEAPON] == -1 - || you.inv[you.equip[EQ_WEAPON]].base_type != OBJ_CORPSES) + || you.inv[you.equip[EQ_WEAPON]].base_type != OBJ_CORPSES) { canned_msg(MSG_SPELL_FIZZLES); } @@ -326,6 +326,9 @@ int cast_bone_shards(int power, bolt &beam) power *= 15; power += mons_weight( you.inv[you.equip[EQ_WEAPON]].plus ); + if (!player_tracer(ZAP_BONE_SHARDS, power, beam)) + return (false); + mpr("The skeleton explodes into sharp fragments of bone!"); dec_inv_item_quantity( you.equip[EQ_WEAPON], 1 ); |