Game/Scripting: Add OnPlayerRepop hook

Port From (https://github.com/TrinityCore/TrinityCore/commit/5291842a33ac535db351072a230e3da6e43123a7)
This commit is contained in:
hondacrx
2019-08-15 12:01:36 -04:00
parent fc76ec26be
commit b8873fa966
3 changed files with 10 additions and 0 deletions
+4
View File
@@ -1198,6 +1198,10 @@ namespace Game.Scripting
{
ForEach<PlayerScript>(p => p.OnUpdateZone(player, newZone, newArea));
}
public void OnPlayerRepop(Player player)
{
ForEach<PlayerScript>(p => p.OnPlayerRepop(player));
}
public void OnQuestStatusChange(Player player, uint questId)
{
ForEach<PlayerScript>(p => p.OnQuestStatusChange(player, questId));