Skip to content

Commit

Permalink
Merge branch 'main' into public-release
Browse files Browse the repository at this point in the history
  • Loading branch information
TheApplePieGod committed Jan 21, 2025
2 parents 9be8896 + c076a16 commit f168e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion battlecode25/engine/game/robot_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f168e48

Please sign in to comment.