Skip to content

Commit f0ad5dc

Browse files
Fix mop swing assert check
1 parent d0a2993 commit f0ad5dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/src/main/battlecode/world/RobotControllerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,7 @@ public boolean canMopSwing(Direction dir) {
970970

971971
@Override
972972
public void mopSwing(Direction dir) throws GameActionException {
973+
assertCanMopSwing(dir);
973974
this.robot.addActionCooldownTurns(GameConstants.ATTACK_MOPPER_SWING_COOLDOWN);
974975
this.robot.mopSwing(dir);
975976
}

0 commit comments

Comments
 (0)