summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/goditem.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/goditem.cc')
-rw-r--r--crawl-ref/source/goditem.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/goditem.cc b/crawl-ref/source/goditem.cc
index 5b31e5efd8..742236b286 100644
--- a/crawl-ref/source/goditem.cc
+++ b/crawl-ref/source/goditem.cc
@@ -277,10 +277,9 @@ bool is_hasty_spell(spell_type spell, god_type god)
{
UNUSED(god);
- return (spell == SPELL_HASTE
- || spell == SPELL_SWIFTNESS
- || spell == SPELL_BERSERKER_RAGE
- || spell == SPELL_HASTE_OTHER);
+ unsigned int flags = get_spell_flags(spell);
+
+ return (flags & SPFLAG_HASTY);
}
// The default suitable() function for is_spellbook_type().