From c076a16f47ad7aec5ea17c42adacce38f8b055ea Mon Sep 17 00:00:00 2001 From: TheApplePieGod Date: Tue, 21 Jan 2025 16:18:15 -0500 Subject: [PATCH] Fix message broadcasting issue --- battlecode25/engine/game/robot_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battlecode25/engine/game/robot_controller.py b/battlecode25/engine/game/robot_controller.py index e9a10d4..f143ec7 100644 --- a/battlecode25/engine/game/robot_controller.py +++ b/battlecode25/engine/game/robot_controller.py @@ -661,7 +661,7 @@ def send_message(self, loc: MapLocation, message_content: int) -> None: self.game.game_fb.add_message_action(target.id, message_content) def assert_can_broadcast_message(self): - if not self.robot.type.is_robot_type(): + if self.robot.type.is_robot_type(): raise RobotError("Only towers can broadcast messages") if self.robot.sent_message_count >= GameConstants.MAX_MESSAGES_SENT_TOWER: raise RobotError("Tower has already sent too many messages this round")