mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[c12571] Allow spell effect 77 (ScriptEffect) and aura 226 (PeriodicDummy) to be handled by script library
This commit is contained in:
parent
c9aa7b5d3a
commit
dcc087a360
5 changed files with 22 additions and 1 deletions
|
|
@ -8898,6 +8898,14 @@ void Spell::EffectScriptEffect(SpellEffectEntry const* effect)
|
|||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
// Script based implementation. Must be used only for not good for implementation in core spell effects
|
||||
// So called only for not processed cases
|
||||
if (unitTarget->GetTypeId() == TYPEID_UNIT)
|
||||
{
|
||||
if (sScriptMgr.OnEffectScriptEffect(m_caster, m_spellInfo->Id, SpellEffectIndex(effect->EffectIndex), (Creature*)unitTarget))
|
||||
return;
|
||||
}
|
||||
|
||||
// Previous effect might have started script
|
||||
if (!ScriptMgr::CanSpellEffectStartDBScript(m_spellInfo, SpellEffectIndex(effect->EffectIndex)))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue