From 45ea9ea648da5095b1b527ab5558725a7c245fa0 Mon Sep 17 00:00:00 2001 From: TheApplePieGod Date: Fri, 10 Jan 2025 11:29:39 -0500 Subject: [PATCH] Fix can_remove_mark --- battlecode25/engine/game/robot_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/battlecode25/engine/game/robot_controller.py b/battlecode25/engine/game/robot_controller.py index ee6dc3e..c326674 100644 --- a/battlecode25/engine/game/robot_controller.py +++ b/battlecode25/engine/game/robot_controller.py @@ -507,7 +507,7 @@ def assert_can_remove_mark(self, loc: MapLocation) -> None: self.assert_is_robot_type(self.robot.type) self.assert_can_act_location(loc, GameConstants.MARK_RADIUS_SQUARED) - if self.game.get_marker(loc) == 0: + if self.game.get_marker(self.robot.team, loc) == 0: raise RobotError("Cannot remove mark from unmarked location") def can_remove_mark(self, loc: MapLocation) -> bool: @@ -764,4 +764,4 @@ def disintegrate(self) -> None: class RobotError(Exception): """Raised for illegal robot inputs""" - pass \ No newline at end of file + pass