mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
feat(Core/Entities): add OnPlayerCanGiveLevel script hook (#21666)
This commit is contained in:
@@ -2476,6 +2476,9 @@ void Player::GiveLevel(uint8 level)
|
||||
if (level == oldLevel)
|
||||
return;
|
||||
|
||||
if (!sScriptMgr->OnPlayerCanGiveLevel(this, level))
|
||||
return;
|
||||
|
||||
if (Guild* guild = GetGuild())
|
||||
guild->UpdateMemberData(this, GUILD_MEMBER_DATA_LEVEL, level);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user