aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);