*Do not allow cancel area autocasted auras.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-17 00:58:06 -05:00
parent e62c77fb1d
commit 30195348ac
+3 -1
View File
@@ -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;