Do not use same unit multiple times in one action
@@ -11,13 +11,13 @@ def combine_actions(action_iter):
if target is None:
cmd = raw_pb.ActionRawUnitCommand(
ability_id=ability.value,
- unit_tags=[u.unit.tag for u in items],
+ unit_tags=list({u.unit.tag for u in items}),
queue_command=queue
)
elif isinstance(target, Point2):
cmd = raw_pb.ActionRawUnitCommand(
ability_id=ability.value,
- unit_tags=[u.unit.tag for u in items],
+ unit_tags=list({u.unit.tag for u in items}),
queue_command=queue,
target_world_space_pos=common_pb.Point2D(x=target.x, y=target.y)
)
