feat(Core/Scripting): Add OnPlayerBeforeGetLevelForXPGain hook (#25295)

This commit is contained in:
Axel Cocat
2026-04-24 08:17:31 +02:00
committed by GitHub
parent 0f2841ddcf
commit cd3cccc961
9 changed files with 60 additions and 15 deletions

View File

@@ -467,6 +467,7 @@ public: /* PlayerScript */
void OnPlayerGetReputationPriceDiscount(Player const* player, Creature const* creature, float& discount);
void OnPlayerGetReputationPriceDiscount(Player const* player, FactionTemplateEntry const* factionTemplate, float& discount);
void OnPlayerLearnTaxiNode(Player const* player, uint32 nodeId);
void OnPlayerBeforeGetLevelForXPGain(Player const* player, uint8& level);
// Anti cheat
void AnticheatSetCanFlybyServer(Player* player, bool apply);