Core/Spells: rework part 3: spells only handle at most one UnitAura and one DynObjAura during its lifetime

Closes #15088
This commit is contained in:
ariel-
2018-01-27 03:45:40 -03:00
committed by Ariel Silva
parent 9b38a6352c
commit e8d5aa56cc
15 changed files with 517 additions and 323 deletions

View File

@@ -315,7 +315,12 @@ public:
uint32 spellId = handler->extractSpellIdFromLink((char*)args);
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spellId))
Aura::TryRefreshStackOrCreate(spellInfo, MAX_EFFECT_MASK, target, target);
{
AuraCreateInfo createInfo(spellInfo, MAX_EFFECT_MASK, target);
createInfo.SetCaster(target);
Aura::TryRefreshStackOrCreate(createInfo);
}
return true;
}