diff options
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index d5707703d0..552e905ab8 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2995,6 +2995,14 @@ void zap_wand(void) zapping( static_cast<zap_type>(type_zapped), 30 + roll_dice(2, you.skills[SK_EVOCATIONS]), beam ); + // take off a charge + wand.plus--; + + // increment zap count + if ( wand.plus2 >= 0 ) + wand.plus2++; + + // identify if necessary if ((beam.obvious_effect || type_zapped == ZAP_FIREBALL) && !alreadyknown) { @@ -3006,13 +3014,6 @@ void zap_wand(void) set_ident_type( wand.base_type, wand.sub_type, ID_TRIED_TYPE ); } - // take off a charge - wand.plus--; - - // increment zap count - if ( wand.plus2 >= 0 ) - wand.plus2++; - if (item_type_known(wand) && (item_ident( wand, ISFLAG_KNOW_PLUSES ) || you.skills[SK_EVOCATIONS] > 5 + random2(15))) |