feat: add OnBattlegroundDesertion hook (#146)

This commit is contained in:
Kevin
2023-06-11 10:28:56 -03:00
committed by GitHub
parent 7ea0b975c2
commit 1abf24490e
6 changed files with 17 additions and 0 deletions

View File

@@ -690,3 +690,11 @@ void Eluna::OnGroupRollRewardItem(Player* player, Item* item, uint32 count, Roll
Push(roll);
CallAllFunctions(PlayerEventBindings, key);
}
void Eluna::OnBattlegroundDesertion(Player* player, const BattlegroundDesertionType type)
{
START_HOOK(PLAYER_EVENT_ON_BG_DESERTION);
Push(player);
Push(type);
CallAllFunctions(PlayerEventBindings, key);
}