Skip to content

Commit 522976f

Browse files
Merge branch 'main' into public-release
2 parents 8669d8c + 519681b commit 522976f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

battlecode25/engine/game/robot_controller.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,7 @@ def remove_mark(self, loc: MapLocation) -> None:
519519
self.game.game_fb.add_unmark_action(loc)
520520

521521
def assert_can_complete_tower_pattern(self, tower_type: UnitType, loc: MapLocation) -> None:
522+
tower_type = tower_type.get_base_type()
522523
self.assert_is_robot_type(self.robot.type)
523524
self.assert_is_tower_type(tower_type)
524525
self.assert_can_act_location(loc, GameConstants.BUILD_TOWER_RADIUS_SQUARED)
@@ -546,6 +547,7 @@ def can_complete_tower_pattern(self, tower_type: UnitType, loc: MapLocation) ->
546547
return False
547548

548549
def complete_tower_pattern(self, tower_type: UnitType, loc: MapLocation) -> None:
550+
tower_type = tower_type.get_base_type()
549551
self.assert_can_complete_tower_pattern(tower_type, loc)
550552
robot = self.game.spawn_robot(tower_type, loc, self.robot.team)
551553
self.game.game_fb.add_spawn_action(robot.id, loc, robot.team, robot.type)

0 commit comments

Comments
 (0)