mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*Fix a bug that non-autocast area spell are set as cannot-cancel.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user