fix(Core): Correct Quest Details Display at Max Level (#13046)
* fix(Core): Quest Details Display at Max Level * Add OnSetMaxLevel hook
This commit is contained in:
parent
4ca370d940
commit
7990de44c1
4 changed files with 62 additions and 11 deletions
|
|
@ -637,6 +637,14 @@ void ScriptMgr::OnFirstLogin(Player* player)
|
|||
});
|
||||
}
|
||||
|
||||
void ScriptMgr::OnSetMaxLevel(Player* player, uint32& maxPlayerLevel)
|
||||
{
|
||||
ExecuteScript<PlayerScript>([&](PlayerScript* script)
|
||||
{
|
||||
script->OnSetMaxLevel(player, maxPlayerLevel);
|
||||
});
|
||||
}
|
||||
|
||||
bool ScriptMgr::CanJoinInBattlegroundQueue(Player* player, ObjectGuid BattlemasterGuid, BattlegroundTypeId BGTypeID, uint8 joinAsGroup, GroupJoinBattlegroundResult& err)
|
||||
{
|
||||
auto ret = IsValidBoolScript<PlayerScript>([&](PlayerScript* script)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue