feat: add player event OnFfaPvpStateUpdate (#63)

This commit is contained in:
55Honey
2022-09-22 15:18:07 +02:00
committed by GitHub
parent 684eb0335b
commit 3f5d2c9257
5 changed files with 18 additions and 1 deletions

View File

@@ -574,3 +574,12 @@ void Eluna::OnAchiComplete(Player* player, AchievementEntry const* achievement)
Push(achievement);
CallAllFunctions(PlayerEventBindings, key);
}
void Eluna::OnFfaPvpStateUpdate(Player* player, bool hasFfaPvp)
{
START_HOOK(PLAYER_EVENT_ON_FFAPVP_CHANGE);
Push(player);
Push(hasFfaPvp);
CallAllFunctions(PlayerEventBindings, key);
}