From d4a6a3d09d20e11cbb38d010de9018554dd965a0 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 17 Jun 2009 13:34:05 -0500 Subject: *Fix a bug that non-autocast area spell are set as cannot-cancel. --HG-- branch : trunk --- src/game/SpellMgr.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index f9d607010ca..2b70f697d9f 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -2254,7 +2254,10 @@ void SpellMgr::LoadSpellAreas() spellArea.autocast = fields[8].GetBool(); if(const SpellEntry* spellInfo = sSpellStore.LookupEntry(spell)) - const_cast(spellInfo)->Attributes |= SPELL_ATTR_CANT_CANCEL; + { + if(spellArea.autocast) + const_cast(spellInfo)->Attributes |= SPELL_ATTR_CANT_CANCEL; + } else { sLog.outErrorDb("Spell %u listed in `spell_area` does not exist", spell); -- cgit v1.2.3