feat(Core): Achievements (#47)

Achievements
This commit is contained in:
Revision
2022-07-05 21:10:51 +02:00
committed by GitHub
parent 0b8b6c0e2a
commit efba901a51
7 changed files with 51 additions and 1 deletions

View File

@@ -566,3 +566,11 @@ void Eluna::OnLearnSpell(Player* player, uint32 spellId)
Push(spellId);
CallAllFunctions(PlayerEventBindings, key);
}
void Eluna::OnAchiComplete(Player* player, AchievementEntry const* achievement)
{
START_HOOK(PLAYER_EVENT_ON_ACHIEVEMENT_COMPLETE);
Push(player);
Push(achievement);
CallAllFunctions(PlayerEventBindings, key);
}