mangosR2/mangos — comment on commit 663b277addfbddaa0b867297a766f691ddeccb53
File:  line 0
By boxa:

@Reamer Thank you very much. I found the base and how to implement such things.

void Spell::EffectSendEvent(SpellEffectIndex effectIndex)
{
if (!sScriptMgr.OnProcessEvent(m_spellInfo->EffectMiscValue[effectIndex], m_caster, focusObject, true))
.....