Skip to content

Commit

Permalink
chore: optimize battle timeout logic
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis committed Nov 2, 2023
1 parent f4bac60 commit 0a65778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/src/systems/BattlePrepareSystem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0a65778

Please sign in to comment.