feat(Core/Entities): add OnPlayerCanGiveLevel script hook (#21666)

This commit is contained in:
Vincent Vanclef
2025-03-10 08:44:33 +01:00
committed by GitHub
parent 4cdb315db1
commit ffe03f6e14
4 changed files with 20 additions and 0 deletions

View File

@@ -463,6 +463,7 @@ public: /* PlayerScript */
void OnPlayerBeforeUpdateSkill(Player* player, uint32 skill_id, uint32& value, uint32 max, uint32 step);
void OnPlayerUpdateSkill(Player* player, uint32 skillId, uint32 value, uint32 max, uint32 step, uint32 newValue);
bool OnPlayerCanResurrect(Player* player);
bool OnPlayerCanGiveLevel(Player* player, uint8 newLevel);
// Anti cheat
void AnticheatSetCanFlybyServer(Player* player, bool apply);