Skip to content

Commit fc38604

Browse files
committed
fixes ability_id reordering in Action classes
1 parent d8c3558 commit fc38604

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sc2/game_state.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ def actions(self) -> list[ActionRawUnitCommand | ActionRawToggleAutocast | Actio
280280
# Actions that have a point as target
281281
actions.append(
282282
ActionRawUnitCommand(
283-
game_loop,
284283
raw_unit_command.ability_id,
284+
game_loop,
285285
list(raw_unit_command.unit_tags),
286286
raw_unit_command.queue_command,
287287
Point2.from_proto(raw_unit_command.target_world_space_pos),
@@ -291,8 +291,8 @@ def actions(self) -> list[ActionRawUnitCommand | ActionRawToggleAutocast | Actio
291291
# Actions that have a unit as target
292292
actions.append(
293293
ActionRawUnitCommand(
294-
game_loop,
295294
raw_unit_command.ability_id,
295+
game_loop,
296296
list(raw_unit_command.unit_tags),
297297
raw_unit_command.queue_command,
298298
None,
@@ -304,8 +304,8 @@ def actions(self) -> list[ActionRawUnitCommand | ActionRawToggleAutocast | Actio
304304
raw_toggle_autocast_action = action_raw.toggle_autocast
305305
actions.append(
306306
ActionRawToggleAutocast(
307-
game_loop,
308307
raw_toggle_autocast_action.ability_id,
308+
game_loop,
309309
list(raw_toggle_autocast_action.unit_tags),
310310
)
311311
)

0 commit comments

Comments
 (0)