From ea4d6f66813759e21a98d4f4f7fee7631b0771bd Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Wed, 22 Apr 2020 09:24:36 +0300 Subject: [PATCH] Fix train troopers action --- src/Action/TrainTrooperAction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Action/TrainTrooperAction.ts b/src/Action/TrainTrooperAction.ts index 8a9ca81..ef430ec 100644 --- a/src/Action/TrainTrooperAction.ts +++ b/src/Action/TrainTrooperAction.ts @@ -10,7 +10,7 @@ export class TrainTrooperAction extends ActionController { const troopId = this.getTroopId(args); const trainCount = this.getTrainCount(args); - const block = jQuery(`#nonFavouriteTroops .innerTroopWrapper.troop${troopId}`); + const block = jQuery(`.innerTroopWrapper[data-troopid="${troopId}"]`); if (block.length !== 1) { throw new ActionError(`Troop block not found`); }