aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-17 13:34:05 -0500
committermegamage <none@none>2009-06-17 13:34:05 -0500
commitd4a6a3d09d20e11cbb38d010de9018554dd965a0 (patch)
tree0dc8bdfc97df57dd4b07cd61da5559cc03988212 /src
parent9b9bf9f3fec02fec2def9576edbd9901204e9a27 (diff)
*Fix a bug that non-autocast area spell are set as cannot-cancel.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellMgr.cpp5
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);