diff --git a/server/gameserver/custom_battle.cc b/server/gameserver/custom_battle.cc index 54ca48aa..24376576 100644 --- a/server/gameserver/custom_battle.cc +++ b/server/gameserver/custom_battle.cc @@ -53,6 +53,9 @@ void CustomBattle::ParseResult(a8::XObject& obj) start_time_ = obj.Get("start_time"); is_newbie_battle_ = obj.Get("is_newbie_battle"); sign_ = obj.Get("sign").GetString(); +#ifdef MYDEBUG + is_newbie_battle_ = 1; +#endif const mt::Map* map_meta = mt::Map::GetById(map_id_); if (!map_meta || !map_meta->IsOpen()) { parse_ok_ = false; diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index e1da0aa2..bc52dae1 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -2641,6 +2641,9 @@ long long Room::GetGasInactiveTime() if (IsNewerMap()) { inactive_time = 10; } + if (IsNewBieBattle()) { + inactive_time = 10; + } return inactive_time; }