Skip to content

Commit

Permalink
chore: add player space restrict
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis committed Oct 26, 2023
1 parent 0271f50 commit 17e7806
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 @@ -51,7 +51,7 @@ contract BattlePrepareSystem is System {
positionList.length > 0 && positionList.length <= BattleConfig.getMaxAttackzDistance(BATTLE_CONFIG_KEY),
"invalid attack distance"
);
// require(positionList.length <= Player.getSpace(_msgSender()), "exceed player space"); //Todo: temp remove
require(positionList.length <= Player.getSpace(_msgSender()), "exceed player space"); //Todo: temp remove

require(
Player.getState(_msgSender()) == PlayerState.Exploring &&
Expand Down

0 comments on commit 17e7806

Please sign in to comment.