Skip to content

Commit 5cfdb40

Browse files
authored
Merge pull request #112 from Erol444/17-05-2022
17 05 2022
2 parents 55ac95d + 720accf commit 5cfdb40

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

TbsCore/Core/PostLoadHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ public static List<Action> GetPostLoadTasks(Account acc)
220220
// 19: Hero:
221221
() =>
222222
{
223+
if ( !acc.Hero.Settings.AutoRefreshInfo) return;
223224
bool heroReady = (acc.Hero.HeroInfo.Health > acc.Hero.Settings.MinHealth &&
224225
acc.Hero.Settings.AutoSendToAdventure &&
225226
acc.Hero.Status == Hero.StatusEnum.Home &&

TbsCore/Core/TaskExecutor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static async Task<bool> PageLoaded(Account acc)
2828
var counter = 3;
2929
while (!acc.Wb.CheckChromeOpen())
3030
{
31-
acc.Logger.Warning("Chrome browser missing");
31+
acc.Logger.Warning("Chrome browser missing");
3232
if (counter == 0)
3333
{
3434
acc.Logger.Warning("Chrome still missing after 3 times restart. Pause bot (suggest logout bot before use bot on this account)");
@@ -61,7 +61,6 @@ public static async Task<bool> PageLoaded(Account acc)
6161
acc.Tasks.Add(new EditPreferences()
6262
{
6363
ExecuteAt = DateTime.Now.AddHours(-1),
64-
TroopsPerPage = 99,
6564
ContextualHelp = true
6665
}, true);
6766
}

TbsCore/Tasks/Sim/ClaimBeginnerTask2021.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ public override async Task<TaskRes> Execute(Account acc)
1515
StopFlag = false;
1616

1717
{
18-
acc.Tasks.Add(new HeroUpdateInfo() { ExecuteAt = DateTime.Now });
18+
if (acc.Hero.Settings.AutoRefreshInfo)
19+
{
20+
acc.Tasks.Add(new HeroUpdateInfo() { ExecuteAt = DateTime.Now });
21+
}
1922
}
2023

2124
{

0 commit comments

Comments
 (0)