Core/Hooks: Add new Player hooks (#1481)
* Fix hook OnReputationChange * Add hook OnReputationRankChange * Add hook OnLearnSpell * Add hook OnForgotSpell
This commit is contained in:
parent
f68fef798d
commit
23d78ce6bc
4 changed files with 40 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue