Skip to content

Commit

Permalink
fix(Pve): checkCorValidity return
Browse files Browse the repository at this point in the history
  • Loading branch information
aLIEzsss4 committed Dec 13, 2023
1 parent 439c3d6 commit 92e1dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts/src/systems/PveBotSystem.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ contract PveBotSystem is System {
for (uint256 i = 0; i < Player.lengthHeroes(player); i++) {
bytes32 key = Player.getItemHeroes(player, i);
HeroData memory hero = Hero.get(key);
if (cor != Coord.compose(hero.x, hero.y)) {
hasErr = true;
if (cor == Coord.compose(hero.x, hero.y)) {
return hasErr = true;
}
// require(cor != Coord.compose(hero.x, hero.y), "this location is not empty");
}
Expand Down

0 comments on commit 92e1dec

Please sign in to comment.