hook OnAfterArenaRatingCalculation

This commit is contained in:
Gargarensis
2017-01-28 11:59:25 +01:00
committed by Yehonal
parent 0cf5a7cc1a
commit 25a38da1e3
3 changed files with 18 additions and 0 deletions

View File

@@ -598,6 +598,8 @@ class BattlegroundScript : public ScriptObject
// Should return a fully valid Battleground object for the type ID.
virtual Battleground* GetBattleground() const = 0;
virtual void OnAfterArenaRatingCalculation(Battleground *const bg, int32 &winnerMatchmakerChange, int32 &loserMatchmakerChange) { };
};
class OutdoorPvPScript : public ScriptObject
@@ -1111,6 +1113,8 @@ class ScriptMgr
Battleground* CreateBattleground(BattlegroundTypeId typeId);
void OnAfterArenaRatingCalculation(Battleground *const bg, int32 &winnerMatchmakerChange, int32 &loserMatchmakerChange);
public: /* OutdoorPvPScript */
OutdoorPvP* CreateOutdoorPvP(OutdoorPvPData const* data);