diff options
author | megamage <none@none> | 2009-06-17 13:34:05 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-17 13:34:05 -0500 |
commit | d4a6a3d09d20e11cbb38d010de9018554dd965a0 (patch) | |
tree | 0dc8bdfc97df57dd4b07cd61da5559cc03988212 /src/game/SpellMgr.cpp | |
parent | 9b9bf9f3fec02fec2def9576edbd9901204e9a27 (diff) |
*Fix a bug that non-autocast area spell are set as cannot-cancel.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r-- | src/game/SpellMgr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<SpellEntry*>(spellInfo)->Attributes |= SPELL_ATTR_CANT_CANCEL; + { + if(spellArea.autocast) + const_cast<SpellEntry*>(spellInfo)->Attributes |= SPELL_ATTR_CANT_CANCEL; + } else { sLog.outErrorDb("Spell %u listed in `spell_area` does not exist", spell); |