diff options
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 8f703652b7..16d2717b38 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4138,6 +4138,17 @@ void zap_wand(int slot) // Reset range. beam.range = _wand_range(type_zapped); + +#ifdef WIZARD + if (you.wizard) + { + std::string str = wand.inscription; + int wiz_range = strip_number_tag(str, "range:"); + if (wiz_range != TAG_UNFOUND) + beam.range = wiz_range; + } +#endif + // zapping() updates beam. zapping( type_zapped, 30 + roll_dice(2, you.skills[SK_EVOCATIONS]), beam ); |