Skip to content

Commit 23bfa10

Browse files
committed
Fixed task SendReinforcementScouts
1 parent 23decc1 commit 23bfa10

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

TbsCore/Tasks/SecondLevel/SendReinforcementScouts.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using TbsCore.TravianData;
1111
using TbsCore.Helpers;
1212
using TbsCore.Tasks.LowLevel;
13+
using TbsCore.Models.TroopsModels;
1314

1415
namespace TbsCore.Tasks.SecondLevel
1516
{
@@ -32,13 +33,13 @@ public override async Task<TaskRes> Execute(Account acc)
3233
base.TroopsMovement.MovementType = Classificator.MovementType.Reinforcement;
3334
base.TroopsMovement.TargetCoordinates = vill.Coordinates;
3435
base.SetCoordsInUrl = true;
35-
base.TroopsCallback = (Account _, int[] troops) =>
36+
base.TroopsCallback = (Account _, TroopsBase t) =>
3637
{
37-
for (int i = 0; i < troops.Length; i++)
38+
for (int i = 0; i < t.Troops.Length; i++)
3839
{
3940
if (TroopsData.IsTroopScout(acc, i))
4041
{
41-
if (this.Scouts <= troops[i]) return true;
42+
if (this.Scouts <= t.Troops[i]) return true;
4243
stop = true;
4344
return false;
4445
}

TravBotSharp/Views/VillageViews/TroopsUc.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)