summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-07-05 13:28:45 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-07-06 00:58:20 +0200
commitb3314a156ea10e429641abad9fa39051ea06b5dc (patch)
treedbc52db1d0caf778b33568a387037e1daf45c42c /crawl-ref/source/spl-util.cc
parent2e4c7b943fb117640438731b55b4451bff531f8a (diff)
downloadcrawl-ref-b3314a156ea10e429641abad9fa39051ea06b5dc.tar.gz
crawl-ref-b3314a156ea10e429641abad9fa39051ea06b5dc.zip
Mark Delayed Fireball as temp-useless when it's on.
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index 92fc71214f..a402a0dd6c 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -1189,6 +1189,9 @@ bool spell_is_useless(spell_type spell, bool transient)
}
break;
+ case SPELL_DELAYED_FIREBALL:
+ return transient && you.attribute[ATTR_DELAYED_FIREBALL];
+
default:
break; // quash unhandled constants warnings
}