feat(PlayerHooks): OnLearnSpell(player, spellid) (#46)

OnLearnSpell
This commit is contained in:
Revision
2022-06-20 07:48:17 +02:00
committed by GitHub
parent ea6700d4bf
commit 60c90414d5
5 changed files with 16 additions and 0 deletions

View File

@@ -558,3 +558,11 @@ void Eluna::OnPetAddedToWorld(Player* player, Creature* pet)
Push(pet);
CallAllFunctions(PlayerEventBindings, key);
}
void Eluna::OnLearnSpell(Player* player, uint32 spellId)
{
START_HOOK(PLAYER_EVENT_ON_LEARN_SPELL);
Push(player);
Push(spellId);
CallAllFunctions(PlayerEventBindings, key);
}