mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 18:40:28 +00:00
Core/Hooks: Add new Player hooks (#1481)
* Fix hook OnReputationChange * Add hook OnReputationRankChange * Add hook OnLearnSpell * Add hook OnForgotSpell
This commit is contained in:
committed by
Kargatum
parent
f68fef798d
commit
23d78ce6bc
@@ -1464,6 +1464,21 @@ void ScriptMgr::OnPlayerReputationChange(Player* player, uint32 factionID, int32
|
||||
FOREACH_SCRIPT(PlayerScript)->OnReputationChange(player, factionID, standing, incremental);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerReputationRankChange(Player* player, uint32 factionID, ReputationRank newRank, ReputationRank oldRank, bool increased)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnReputationRankChange(player, factionID, newRank, oldRank, increased);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerLearnSpell(Player* player, uint32 spellID)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnLearnSpell(player, spellID);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerForgotSpell(Player* player, uint32 spellID)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnForgotSpell(player, spellID);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnPlayerDuelRequest(Player* target, Player* challenger)
|
||||
{
|
||||
#ifdef ELUNA
|
||||
|
||||
Reference in New Issue
Block a user