*Fix a bug that non-autocast area spell are set as cannot-cancel.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-17 13:34:05 -05:00
parent 9b9bf9f3fe
commit d4a6a3d09d

View File

@@ -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);