From 25a38da1e308f45db6445f885cf3466d6cbcfd03 Mon Sep 17 00:00:00 2001 From: Gargarensis Date: Sat, 28 Jan 2017 11:59:25 +0100 Subject: hook OnAfterArenaRatingCalculation --- src/game/Scripting/ScriptMgr.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/game/Scripting/ScriptMgr.cpp') diff --git a/src/game/Scripting/ScriptMgr.cpp b/src/game/Scripting/ScriptMgr.cpp index 453e56ea3e..9031dd2e82 100644 --- a/src/game/Scripting/ScriptMgr.cpp +++ b/src/game/Scripting/ScriptMgr.cpp @@ -1545,6 +1545,7 @@ void ScriptMgr::OnAfterStoreOrEquipNewItem(Player* player, uint32 vendorslot, ui FOREACH_SCRIPT(PlayerScript)->OnAfterStoreOrEquipNewItem(player, vendorslot, item, count, bag, slot, pProto, pVendor, crItem, bStore); } + void ScriptMgr::OnAfterUpdateMaxPower(Player* player, Powers& power, float& value) { FOREACH_SCRIPT(PlayerScript)->OnAfterUpdateMaxPower(player, power, value); @@ -1565,6 +1566,16 @@ void ScriptMgr::OnAfterUpdateAttackPowerAndDamage(Player* player, float& level, FOREACH_SCRIPT(PlayerScript)->OnAfterUpdateAttackPowerAndDamage(player, level, base_attPower, attPowerMod, attPowerMultiplier, ranged); } +void ScriptMgr::OnBeforeInitTalentForLevel(Player* player, uint8& level, uint32& talentPointsForLevel) +{ + FOREACH_SCRIPT(PlayerScript)->OnBeforeInitTalentForLevel(player, level, talentPointsForLevel); +} + +void ScriptMgr::OnAfterArenaRatingCalculation(Battleground *const bg, int32 &winnerMatchmakerChange, int32 &loserMatchmakerChange) +{ + FOREACH_SCRIPT(BattlegroundScript)->OnAfterArenaRatingCalculation(bg, winnerMatchmakerChange, loserMatchmakerChange); +} + AllMapScript::AllMapScript(const char* name) : ScriptObject(name) { -- cgit v1.2.3