Core/ZoneScript: Add "invoker" param to ProcessEvent

Port From (https://github.com/TrinityCore/TrinityCore/commit/15b91836351a61f471865a751d4ff9ab0b5775a0)
This commit is contained in:
hondacrx
2022-01-09 14:12:34 -05:00
parent 64de342e49
commit 860bf84280
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -720,9 +720,9 @@ namespace Game.Spells
ZoneScript zoneScript = m_caster.GetZoneScript();
InstanceScript instanceScript = m_caster.GetInstanceScript();
if (zoneScript != null)
zoneScript.ProcessEvent(target, (uint)effectInfo.MiscValue);
zoneScript.ProcessEvent(target, (uint)effectInfo.MiscValue, m_caster);
else if (instanceScript != null) // needed in case Player is the caster
instanceScript.ProcessEvent(target, (uint)effectInfo.MiscValue);
instanceScript.ProcessEvent(target, (uint)effectInfo.MiscValue, m_caster);
m_caster.GetMap().ScriptsStart(ScriptsType.Event, (uint)effectInfo.MiscValue, m_caster, target);
}