diff --git a/server/gameserver/custom_battle.cc b/server/gameserver/custom_battle.cc index a57e472f..f8d5acb6 100644 --- a/server/gameserver/custom_battle.cc +++ b/server/gameserver/custom_battle.cc @@ -49,6 +49,7 @@ void CustomBattle::ParseResult(a8::XObject& obj) node_id_ = obj.Get("node_id"); map_mode_ = obj.Get("mode_id"); map_id_ = obj.Get("map_id"); + match_mode_ = obj.Get("match_mode"); start_time_ = obj.Get("start_time"); sign_ = obj.Get("sign").GetString(); const mt::Map* map_meta = mt::Map::GetById(map_id_); diff --git a/server/gameserver/custom_battle.h b/server/gameserver/custom_battle.h index 3bff05dd..e84e1a9a 100644 --- a/server/gameserver/custom_battle.h +++ b/server/gameserver/custom_battle.h @@ -25,6 +25,7 @@ class CustomBattle : public std::enable_shared_from_this const std::shared_ptr& GetRawData() { return raw_data_; } int GetZoneId() { return zone_id_; } int GetNodeId() { return zone_id_; } + int GetMatchMode() { return match_mode_; } int GetMapMode() { return map_mode_; } int GetMapId() { return map_id_; } RoomType_e GetRoomType(); @@ -70,6 +71,7 @@ private: int zone_id_ = 0; int node_id_ = 0; int map_mode_ = 0; + int match_mode_ = 0; int map_id_ = 0; int start_time_ = 0; int team1_average_hero_lv_ = 0;