aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-17 00:58:06 -0500
committermegamage <none@none>2009-06-17 00:58:06 -0500
commit30195348ac7e004acf84043c5bf9f1c70f19755e (patch)
tree6ecc4f2a79451d384d7c2a898e63281461305abf /src
parente62c77fb1d4e069fff0719cca7f2c618c2b72b67 (diff)
*Do not allow cancel area autocasted auras.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellMgr.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 3f2d9204750..f9d607010ca 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2253,7 +2253,9 @@ void SpellMgr::LoadSpellAreas()
spellArea.gender = Gender(fields[7].GetUInt8());
spellArea.autocast = fields[8].GetBool();
- if(!sSpellStore.LookupEntry(spell))
+ if(const SpellEntry* spellInfo = sSpellStore.LookupEntry(spell))
+ const_cast<SpellEntry*>(spellInfo)->Attributes |= SPELL_ATTR_CANT_CANCEL;
+ else
{
sLog.outErrorDb("Spell %u listed in `spell_area` does not exist", spell);
continue;