feat(Core/Scripting): Add Player skill based hook (#21273)

Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com>
Co-authored-by: Ludwig <sudlud@users.noreply.github.com>
This commit is contained in:
iThorgrim
2025-02-15 23:10:38 +01:00
committed by GitHub
parent c96ff8a6dc
commit 971ebcae31
4 changed files with 37 additions and 4 deletions

View File

@@ -459,6 +459,9 @@ public: /* PlayerScript */
void OnAfterCreatureLoot(Player* player);
void OnAfterCreatureLootMoney(Player* player);
bool OnCanPlayerFlyInZone(Player* player, uint32 mapId, uint32 zoneId, SpellInfo const* bySpell);
bool CanPlayerUpdateSkill(Player* player, uint32 skillId);
void OnBeforePlayerUpdateSkill(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 CanPlayerResurrect(Player* player);
// Anti cheat