Core/ZoneScript: Implemented ProcessEvent function for units.

Signed-off-by: Manuel <[email protected]>
This commit is contained in:
Manuel
2011-01-20 12:27:08 -03:00
parent dd751242fc
commit 19634e7fce
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -2175,6 +2175,12 @@ void Spell::EffectSendEvent(SpellEffIndex effIndex)
else
pTarget = NULL;
if (unitTarget)
{
if (ZoneScript* zoneScript = unitTarget->GetZoneScript())
zoneScript->ProcessEvent(unitTarget, m_spellInfo->EffectMiscValue[effIndex]);
}
m_caster->GetMap()->ScriptsStart(sEventScripts, m_spellInfo->EffectMiscValue[effIndex], m_caster, pTarget);
}