From 5d7a50baaa1a688660fed5da400ff1ebd5c81049 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Mon, 9 Nov 2009 23:59:39 -0600 Subject: Add spell flag SPFLAG_HASTY, and mark hasty spells with it. --- crawl-ref/source/goditem.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crawl-ref/source/goditem.cc') 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(). -- cgit v1.2.3-54-g00ecf