diff --git a/packages/contracts/src/systems/BattleSystem.sol b/packages/contracts/src/systems/BattleSystem.sol index c7de468b..8b26b3e6 100644 --- a/packages/contracts/src/systems/BattleSystem.sol +++ b/packages/contracts/src/systems/BattleSystem.sol @@ -42,7 +42,7 @@ contract BattleSystem is System { // console.log("reveal battle"); revealWinner(_battleId); } - emit BattleReveal(_battleId, _msgSender()); + // emit BattleReveal(_battleId, _msgSender()); } function revealWinner(uint256 _battleId) public { diff --git a/packages/contracts/src/systems/MoveSystem.sol b/packages/contracts/src/systems/MoveSystem.sol index bc391146..96c82496 100644 --- a/packages/contracts/src/systems/MoveSystem.sol +++ b/packages/contracts/src/systems/MoveSystem.sol @@ -31,7 +31,7 @@ contract MoveSystem is System { moveList.length > 0 && moveList.length <= BattleConfig.getMaxMoveDistance(BATTLE_CONFIG_KEY), "invalid move distance" ); - // require(moveList.length <= Player.getSpeed(_msgSender()), "exceed player speed"); + require(moveList.length <= Player.getSpeed(_msgSender()), "exceed player speed"); // check player lock require(PlayerLocationLock.get(_msgSender()) == 0, "You are locked"); // check continuity