summaryrefslogtreecommitdiff
path: root/src/game/Scripting/ScriptMgr.h
diff options
context:
space:
mode:
authorGargarensis <gabririchi@yahoo.it>2017-01-28 11:59:25 +0100
committerYehonal <yehonal.azeroth@gmail.com>2017-03-26 01:09:36 +0100
commit25a38da1e308f45db6445f885cf3466d6cbcfd03 (patch)
tree8e28f18821eb4b92591e4cf7308e113ff58ce61a /src/game/Scripting/ScriptMgr.h
parent0cf5a7cc1a098d09c181ee1177c36e8e751c34ec (diff)
hook OnAfterArenaRatingCalculation
Diffstat (limited to 'src/game/Scripting/ScriptMgr.h')
-rw-r--r--src/game/Scripting/ScriptMgr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Scripting/ScriptMgr.h b/src/game/Scripting/ScriptMgr.h
index c75a1dbe7d..60e450cbd7 100644
--- a/src/game/Scripting/ScriptMgr.h
+++ b/src/game/Scripting/ScriptMgr.h
@@ -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);