From 0a657782dc9cb88a05b735f4036f17eb4c33e08b Mon Sep 17 00:00:00 2001 From: lewis <> Date: Thu, 2 Nov 2023 13:44:18 +0800 Subject: [PATCH] chore: optimize battle timeout logic --- packages/contracts/src/systems/BattlePrepareSystem.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contracts/src/systems/BattlePrepareSystem.sol b/packages/contracts/src/systems/BattlePrepareSystem.sol index 3a5cfe33..7a2d1ba9 100644 --- a/packages/contracts/src/systems/BattlePrepareSystem.sol +++ b/packages/contracts/src/systems/BattlePrepareSystem.sol @@ -92,7 +92,7 @@ contract BattlePrepareSystem is System { BattleListData memory battle = BattleList.get(_battleId); BattleUtils.checkBattlePlayer(battle, _msgSender(), BattleState.Inited); - require(block.timestamp - battle.startTimestamp < BattleConfig.getMaxTimeLimit(BATTLE_CONFIG_KEY), "Battle is timeout"); + // require(block.timestamp - battle.startTimestamp < BattleConfig.getMaxTimeLimit(BATTLE_CONFIG_KEY), "Battle is timeout"); // 战斗是否已经选择buff BattleState _battleState = battle.attacker == _msgSender() ? battle.attackerState : battle.defenderState;