Skip to content

Commit c6ca238

Browse files
author
MonkeyHunter
committed
* v8.1.6
* Added "Before you upgrade" window support. * Improved Blacksmith equipement upgrade. * Fixed BB Repair Building. * Improved Ores report OCR. * Improved CG "Stop before completing your limit" (Challenge points check). * Improved CG challenges detection. * Improved Clan Capital upgrade exclusion detection. * Improved Clan Capital opened builder menu detection. * Improved CG Event Purge. * Improved BOB Buildings, Battle Copter and Battle Machine upgrade window detection. * Improved Electro Dragon detection in attack bar. * Improved Wall breaker detection in troops queue. * Improved BattleMachine and BattleCopter location. * Fixed troops deployment in BB attacks. * Improved Invisibility spell detection. * Improved some buildings detection for weak bases. * Improved Healing Tome detection. * Added max level equipment support. * Fixed Discount Perks coordinates and OCR. * Updated couple of libraries. * Fixed Free Magic Items Collect. * Added Frozen Arrow equipment Support. * Improved Equipment detection. * Updated couple of libraries 2. * Added Dragon Palace Scenery support (Attack only). * Improved loot cart collect (clan chat detection). * Improved Time Check for Clan Games Start. * Fixed SmartFarm custom order deployment. * Improved Remain Train OCR (8/3). * Improved Red Building Cost OCR (2). * Improved CG event type detection. * Improved Frozen Arrow detection. * Improved Bat Spell detection. * Improved Spooky Scenery detection (Attack Only). * Improved CG remaining time OCR. * Fixed IsCGCoolDownTime function. ** Added support for COC 16.137.6. * Updated Chat button detection. * Updated donation and request system. * Updated Bonus window detection. * Updated Pets cost and level. * Added hog puppet and haste vial equipment support. * Improved needed level for equipment. * Updated upgrade walls, buildings and heroes cost detection. * Improved Queen detection when dropped (Attack bar). * Fixed CC Troops, spells and sieges remove function. * Improved Builders count (Despite Goblin Builder display). * Added Overgrowth Spell upgrade support in laboratory. * Improved some libraries and changed few tolerances. * Added Guard warning window support in legend league. * Typo. * Added full Overgrowth spell support (OgSpell). * Reworked Donation GUI. * Improved Attack bar drag for 11+ slots. * Improved hero status detection (heal). * Improved hero heal time OCR. * Updated Siege machines level. * Updated Dark Elixir drill values (smartzap). * Improved Blacksmith opening when new equipment. * Updated SafeCoord to match with new chat button. * Added Mine and Collector level 16 template. * Improved Custom and Order Lists Display. * Added couple of ScatterShot level 5 and Inferno Tower level 10 templates. * Updated Weak base filters for new levels. * Updated DE Drill, Collector and Gold mine max level. * Updated Persian-bundle and Donate OCR for Persian/Arabic. * Added conditional Telegram message: All Legends attacks made today.
1 parent d4c8dd3 commit c6ca238

File tree

167 files changed

+3757
-2658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+3757
-2658
lines changed

CHANGELOG

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,73 @@
1-
* v8.1.5
1+
* v8.1.6
2+
* Added "Before you upgrade" window support.
3+
* Improved Blacksmith equipement upgrade.
4+
* Fixed BB Repair Building.
5+
* Improved Ores report OCR.
6+
* Improved CG "Stop before completing your limit" (Challenge points check).
7+
* Improved CG challenges detection.
8+
* Improved Clan Capital upgrade exclusion detection.
9+
* Improved Clan Capital opened builder menu detection.
10+
* Improved CG Event Purge.
11+
* Improved BOB Buildings, Battle Copter and Battle Machine upgrade window detection.
12+
* Improved Electro Dragon detection in attack bar.
13+
* Improved Wall breaker detection in troops queue.
14+
* Improved BattleMachine and BattleCopter location.
15+
* Fixed troops deployment in BB attacks.
16+
* Improved Invisibility spell detection.
17+
* Improved some buildings detection for weak bases.
18+
* Improved Healing Tome detection.
19+
* Added max level equipment support.
20+
* Fixed Discount Perks coordinates and OCR.
21+
* Updated couple of libraries.
22+
* Fixed Free Magic Items Collect.
23+
* Added Frozen Arrow equipment Support.
24+
* Improved Equipment detection.
25+
* Updated couple of libraries 2.
26+
* Added Dragon Palace Scenery support (Attack only).
27+
* Improved loot cart collect (clan chat detection).
28+
* Improved Time Check for Clan Games Start.
29+
* Fixed SmartFarm custom order deployment.
30+
* Improved Remain Train OCR (8/3).
31+
* Improved Red Building Cost OCR (2).
32+
* Improved CG event type detection.
33+
* Improved Frozen Arrow detection.
34+
* Improved Bat Spell detection.
35+
* Improved Spooky Scenery detection (Attack Only).
36+
* Improved CG remaining time OCR.
37+
* Fixed IsCGCoolDownTime function.
38+
** Added support for COC 16.137.6.
39+
* Updated Chat button detection.
40+
* Updated donation and request system.
41+
* Updated Bonus window detection.
42+
* Updated Pets cost and level.
43+
* Added hog puppet and haste vial equipment support.
44+
* Improved needed level for equipment.
45+
* Updated upgrade walls, buildings and heroes cost detection.
46+
* Improved Queen detection when dropped (Attack bar).
47+
* Fixed CC Troops, spells and sieges remove function.
48+
* Improved Builders count (Despite Goblin Builder display).
49+
* Added Overgrowth Spell upgrade support in laboratory.
50+
* Improved some libraries and changed few tolerances.
51+
* Added Guard warning window support in legend league.
52+
* Typo.
53+
* Added full Overgrowth spell support (OgSpell).
54+
* Reworked Donation GUI.
55+
* Improved Attack bar drag for 11+ slots.
56+
* Improved hero status detection (heal).
57+
* Improved hero heal time OCR.
58+
* Updated Siege machines level.
59+
* Updated Dark Elixir drill values (smartzap).
60+
* Improved Blacksmith opening when new equipment.
61+
* Updated SafeCoord to match with new chat button.
62+
* Added Mine and Collector level 16 template.
63+
* Improved Custom and Order Lists Display.
64+
* Added couple of ScatterShot level 5 and Inferno Tower level 10 templates.
65+
* Updated Weak base filters for new levels.
66+
* Updated DE Drill, Collector and Gold mine max level.
67+
* Updated Persian-bundle and Donate OCR for Persian/Arabic.
68+
* Added conditional Telegram message: All Legends attacks made today.
69+
70+
* v8.1.5 **
271
* Improved OCR Army Capacity.
372
* Fixed Quick Train.
473
* Improved Donate window detection and OCR.

COCBot/GUI/MBR GUI Control Attack Scripted.au3

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ Func ApplyScriptDB()
269269
Local $iApplySieges = 0
270270
Local $iSlot = 0
271271
Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
272-
Local $aiCSVSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
273-
Local $sCSVCCSpl[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
274-
Local $ToIgnore[$eSpellCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
272+
Local $aiCSVSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
273+
Local $sCSVCCSpl[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
274+
Local $ToIgnore[$eSpellCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
275275
Local $aiCSVSieges[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0]
276276
Local $aiCSVHeros[$eHeroCount][2] = [[0, 0], [0, 0], [0, 0], [0, 0]]
277277
Local $aiCSVWardenMode = -1
@@ -423,9 +423,9 @@ Func ApplyScriptAB()
423423
Local $iApplySieges = 0
424424
Local $iSlot = 0
425425
Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
426-
Local $aiCSVSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ,0]
427-
Local $sCSVCCSpl[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ,0]
428-
Local $ToIgnore[$eSpellCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
426+
Local $aiCSVSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0]
427+
Local $sCSVCCSpl[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0, 0]
428+
Local $ToIgnore[$eSpellCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
429429
Local $aiCSVSieges[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0]
430430
Local $aiCSVHeros[$eHeroCount][2] = [[0, 0], [0, 0], [0, 0], [0, 0]]
431431
Local $aiCSVWardenMode = -1

COCBot/GUI/MBR GUI Control Child Army.au3

Lines changed: 46 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,15 @@ Func HideSpellsFctTH()
350350
If $g_iTownHallLevel > 5 Or $g_iTownHallLevel = 0 Then
351351
_GUI_Value_STATE("ENABLE", $groupHeal)
352352
Else
353-
For $i = $eSpellRage To $eSpellBat
353+
For $i = $eSpellRage To $eSpellOvergrowth
354354
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$i], 0)
355355
Next
356356
EndIf
357357

358358
If $g_iTownHallLevel > 6 Or $g_iTownHallLevel = 0 Then
359359
_GUI_Value_STATE("ENABLE", $groupRage)
360360
Else
361-
For $i = $eSpellJump To $eSpellBat
361+
For $i = $eSpellJump To $eSpellOvergrowth
362362
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$i], 0)
363363
Next
364364
EndIf
@@ -375,6 +375,7 @@ Func HideSpellsFctTH()
375375
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellHaste], 0)
376376
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellSkeleton], 0)
377377
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellBat], 0)
378+
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellOvergrowth], 0)
378379
EndIf
379380

380381
If $g_iTownHallLevel > 8 Or $g_iTownHallLevel = 0 Then
@@ -387,6 +388,7 @@ Func HideSpellsFctTH()
387388
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellBat], 0)
388389
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellInvisibility], 0)
389390
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellRecall], 0)
391+
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellOvergrowth], 0)
390392
EndIf
391393

392394
If $g_iTownHallLevel > 9 Or $g_iTownHallLevel = 0 Then
@@ -395,10 +397,18 @@ Func HideSpellsFctTH()
395397
Else
396398
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellInvisibility], 0)
397399
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellRecall], 0)
400+
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellOvergrowth], 0)
398401
EndIf
399402

400403
If $g_iTownHallLevel > 10 Or $g_iTownHallLevel = 0 Then
401404
_GUI_Value_STATE("ENABLE", $groupInvisibility)
405+
Else
406+
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellRecall], 0)
407+
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellOvergrowth], 0)
408+
EndIf
409+
410+
If $g_iTownHallLevel > 11 Or $g_iTownHallLevel = 0 Then
411+
_GUI_Value_STATE("ENABLE", $groupOvergrowth)
402412
Else
403413
GUICtrlSetData($g_ahTxtTrainArmySpellCount[$eSpellRecall], 0)
404414
EndIf
@@ -580,11 +590,11 @@ Func GUISpellsOrder()
580590
Next
581591

582592
If $bDuplicate Then
583-
GUICtrlSetState($g_hBtnSpellsOrderSet, $GUI_DISABLE) ; enable button to apply new order
593+
GUICtrlSetState($g_hBtnSpellsOrderSet, $GUI_ENABLE) ; enable button to apply new order
594+
_GUICtrlSetImage($g_ahImgSpellsOrderSet, $g_sLibIconPath, $eIcnRedLight) ; set status indicator to show need to apply new order
584595
Return
585596
Else
586597
GUICtrlSetState($g_hBtnSpellsOrderSet, $GUI_ENABLE) ; enable button to apply new order
587-
_GUICtrlSetImage($g_ahImgSpellsOrderSet, $g_sLibIconPath, $eIcnRedLight) ; set status indicator to show need to apply new order
588598
EndIf
589599
EndFunc ;==>GUISpellsOrder
590600

@@ -623,11 +633,11 @@ Func GUITrainOrder()
623633
EndIf
624634
Next
625635
If $bDuplicate Then
626-
GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_DISABLE) ; enable button to apply new order
636+
GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_ENABLE) ; enable button to apply new order
637+
_GUICtrlSetImage($g_ahImgTroopOrderSet, $g_sLibIconPath, $eIcnRedLight) ; set status indicator to show need to apply new order
627638
Return
628639
Else
629640
GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_ENABLE) ; enable button to apply new order
630-
_GUICtrlSetImage($g_ahImgTroopOrderSet, $g_sLibIconPath, $eIcnRedLight) ; set status indicator to show need to apply new order
631641
EndIf
632642
EndFunc ;==>GUITrainOrder
633643

@@ -657,7 +667,7 @@ Func BtnSpellsOrderSet()
657667
Local $bMissingTroop = False ; flag for when troops are not assigned by user
658668
Local $aiBrewOrder[$eSpellCount] = [ _
659669
$eSpellLightning, $eSpellHeal, $eSpellRage, $eSpellJump, $eSpellFreeze, $eSpellClone, _
660-
$eSpellInvisibility, $eSpellRecall, $eSpellPoison, $eSpellEarthquake, $eSpellHaste, $eSpellSkeleton, $eSpellBat]
670+
$eSpellInvisibility, $eSpellRecall, $eSpellPoison, $eSpellEarthquake, $eSpellHaste, $eSpellSkeleton, $eSpellBat, $eSpellOvergrowth]
661671

662672
; check for duplicate combobox index and take action
663673
For $i = 0 To UBound($g_ahCmbSpellsOrder) - 1
@@ -740,59 +750,34 @@ Func BtnTroopOrderSet()
740750
Local $bReady = True ; Initialize ready to record troop order flag
741751
Local $sNewTrainList = ""
742752

743-
Local $bMissingTroop = False ; flag for when troops are not assigned by user
744-
Local $aiUsedTroop[$eTroopCount] = [ _
745-
$eTroopBarbarian, $eTroopSuperBarbarian, $eTroopArcher, $eTroopSuperArcher, $eTroopGiant, $eTroopSuperGiant, $eTroopGoblin, $eTroopSneakyGoblin, $eTroopWallBreaker, _
746-
$eTroopSuperWallBreaker, $eTroopBalloon, $eTroopRocketBalloon, $eTroopWizard, $eTroopSuperWizard, $eTroopHealer, $eTroopDragon, $eTroopSuperDragon, $eTroopPekka, $eTroopBabyDragon, $eTroopInfernoDragon, _
747-
$eTroopMiner, $eTroopSuperMiner, $eTroopElectroDragon, $eTroopYeti, $eTroopDragonRider, $eTroopElectroTitan, _
748-
$eTroopMinion, $eTroopSuperMinion, $eTroopHogRider, $eTroopValkyrie, $eTroopSuperValkyrie, $eTroopGolem, $eTroopWitch, $eTroopSuperWitch, _
749-
$eTroopLavaHound, $eTroopIceHound, $eTroopBowler, $eTroopSuperBowler, $eTroopIceGolem, $eTroopHeadhunter]
753+
Local $aiUsedTroop = $g_aiTrainOrder
754+
Local $aTmpTrainOrder[0], $iStartShuffle = 0
750755

751-
; check for duplicate combobox index and take action
752756
For $i = 0 To UBound($g_ahCmbTroopOrder) - 1
753-
For $j = 0 To UBound($g_ahCmbTroopOrder) - 1
754-
If $i = $j Then ContinueLoop ; skip if index are same
755-
If _GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder[$i]) <> -1 And _
756-
_GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder[$i]) = _GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder[$j]) Then
757-
_GUICtrlComboBox_SetCurSel($g_ahCmbTroopOrder[$j], -1)
758-
_GUICtrlSetImage($g_ahImgTroopOrder[$j], $g_sLibIconPath, $eIcnOptions)
759-
$bReady = False
760-
Else
761-
GUICtrlSetColor($g_ahCmbTroopOrder[$j], $COLOR_BLACK)
762-
EndIf
763-
Next
764-
; update combo array variable with new value
765-
$g_aiCmbCustomTrainOrder[$i] = _GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder[$i])
766-
If $g_aiCmbCustomTrainOrder[$i] = -1 Then $bMissingTroop = True ; check if combo box slot that is not assigned a troop
757+
Local $iValue = _GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder[$i])
758+
If $iValue <> -1 Then
759+
_ArrayAdd($aTmpTrainOrder, $iValue)
760+
Local $iEmpty = _ArraySearch($aiUsedTroop, $iValue)
761+
If $iEmpty > -1 Then $aiUsedTroop[$iEmpty] = -1
762+
EndIf
767763
Next
768764

769-
; Automatic random fill missing troops
770-
If $bReady And $bMissingTroop Then
771-
; 1st update $aiUsedTroop array with troops not used in $g_aiCmbCustomTrainOrder
772-
For $i = 0 To UBound($g_aiCmbCustomTrainOrder) - 1
773-
For $j = 0 To UBound($aiUsedTroop) - 1
774-
If $g_aiCmbCustomTrainOrder[$i] = $j Then
775-
$aiUsedTroop[$j] = -1 ; if troop is used, replace enum value with -1
776-
ExitLoop
777-
EndIf
778-
Next
779-
Next
780-
_ArrayShuffle($aiUsedTroop) ; make missing training order assignment random
781-
For $i = 0 To UBound($g_aiCmbCustomTrainOrder) - 1
782-
If $g_aiCmbCustomTrainOrder[$i] = -1 Then ; check if custom order index is not set
783-
For $j = 0 To UBound($aiUsedTroop) - 1
784-
If $aiUsedTroop[$j] <> -1 Then ; loop till find a valid troop enum
785-
$g_aiCmbCustomTrainOrder[$i] = $aiUsedTroop[$j] ; assign unused troop
786-
_GUICtrlComboBox_SetCurSel($g_ahCmbTroopOrder[$i], $aiUsedTroop[$j])
787-
_GUICtrlSetImage($g_ahImgTroopOrder[$i], $g_sLibIconPath, $g_aiTroopOrderIcon[$g_aiCmbCustomTrainOrder[$i] + 1])
788-
$aiUsedTroop[$j] = -1 ; remove unused troop from array
789-
ExitLoop
790-
EndIf
791-
Next
792-
EndIf
793-
Next
794-
EndIf
765+
$iStartShuffle = UBound($aTmpTrainOrder)
766+
767+
_ArraySort($aiUsedTroop)
768+
769+
For $i = 0 To UBound($aTmpTrainOrder) - 1
770+
If $aiUsedTroop[$i] = -1 Then $aiUsedTroop[$i] = $aTmpTrainOrder[$i]
771+
Next
772+
773+
_ArrayShuffle($aiUsedTroop, $iStartShuffle)
795774

775+
For $i = 0 To UBound($g_ahCmbTroopOrder) - 1
776+
_GUICtrlComboBox_SetCurSel($g_ahCmbTroopOrder[$i], $aiUsedTroop[$i])
777+
_GUICtrlSetImage($g_ahImgTroopOrder[$i], $g_sLibIconPath, $g_aiTroopOrderIcon[$aiUsedTroop[$i] + 1])
778+
Next
779+
780+
$g_aiCmbCustomTrainOrder = $aiUsedTroop
796781
If $bReady Then
797782
ChangeTroopTrainOrder() ; code function to record new training order
798783
If @error Then
@@ -810,7 +795,8 @@ Func BtnTroopOrderSet()
810795
Else
811796
SetLog("Troop training order changed successfully!", $COLOR_SUCCESS)
812797
For $i = 0 To $eTroopCount - 1
813-
$sNewTrainList &= $g_asTroopShortNames[$g_aiTrainOrder[$i]] & ", "
798+
If $g_bDebugSetlogTrain Then SetLog("i = " & $i & " g_aiTrainOrder = " & $aiUsedTroop[$i])
799+
$sNewTrainList &= $g_asTroopShortNames[$aiUsedTroop[$i]] & ", "
814800
Next
815801
$sNewTrainList = StringTrimRight($sNewTrainList, 2)
816802
SetLog("Troop train order= " & $sNewTrainList, $COLOR_INFO)
@@ -819,7 +805,6 @@ Func BtnTroopOrderSet()
819805
SetLog("Must use all troops and No duplicate troop names!", $COLOR_ERROR)
820806
_GUICtrlSetImage($g_ahImgTroopOrderSet, $g_sLibIconPath, $eIcnRedLight)
821807
EndIf
822-
; GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_DISABLE)
823808
SetRedrawBotWindow($bWasRedraw, Default, Default, Default, "BtnTroopOrderSet")
824809
EndFunc ;==>BtnTroopOrderSet
825810

@@ -1558,10 +1543,10 @@ Func HideAllTroops()
15581543
For $i = $g_ahTxtTrainArmyTroopCount[$eTroopSuperBarbarian] To $g_ahTxtTrainArmyTroopCount[$eTroopSuperHogRider]
15591544
GUICtrlSetState($i, $GUI_HIDE)
15601545
Next
1561-
For $i = $g_ahPicTrainArmySpell[$eSpellLightning] To $g_ahPicTrainArmySpell[$eSpellBat]
1546+
For $i = $g_ahPicTrainArmySpell[$eSpellLightning] To $g_ahPicTrainArmySpell[$eSpellOvergrowth]
15621547
GUICtrlSetState($i, $GUI_HIDE)
15631548
Next
1564-
For $i = $g_ahTxtTrainArmySpellCount[$eSpellLightning] To $g_ahTxtTrainArmySpellCount[$eSpellBat]
1549+
For $i = $g_ahTxtTrainArmySpellCount[$eSpellLightning] To $g_ahTxtTrainArmySpellCount[$eSpellOvergrowth]
15651550
GUICtrlSetState($i, $GUI_HIDE)
15661551
Next
15671552
For $i = $g_ahPicTrainArmySiege[$eSiegeWallWrecker] To $g_ahPicTrainArmySiege[$eSiegeBattleDrill]
@@ -1627,10 +1612,10 @@ EndFunc ;==>BtnSuperTroops
16271612

16281613
Func BtnSpells()
16291614
HideAllTroops()
1630-
For $i = $g_ahPicTrainArmySpell[$eSpellLightning] To $g_ahPicTrainArmySpell[$eSpellBat]
1615+
For $i = $g_ahPicTrainArmySpell[$eSpellLightning] To $g_ahPicTrainArmySpell[$eSpellOvergrowth]
16311616
GUICtrlSetState($i, $GUI_SHOW)
16321617
Next
1633-
For $i = $g_ahTxtTrainArmySpellCount[$eSpellLightning] To $g_ahTxtTrainArmySpellCount[$eSpellBat]
1618+
For $i = $g_ahTxtTrainArmySpellCount[$eSpellLightning] To $g_ahTxtTrainArmySpellCount[$eSpellOvergrowth]
16341619
GUICtrlSetState($i, $GUI_SHOW)
16351620
Next
16361621
SetBtnSelector("Spells")

COCBot/GUI/MBR GUI Control Child Upgrade.au3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ Func btnEquipmentOrderSet()
697697
Else
698698
SetLog("Equipment upgrade order changed successfully!", $COLOR_SUCCESS)
699699
For $i = 0 To $eEquipmentCount - 1
700-
$sNewEquipmentList &= $g_asEquipmenthortNames[$aiUsedEquipment[$i]] & ", "
700+
$sNewEquipmentList &= $g_asEquipmentShortNames[$aiUsedEquipment[$i]] & ", "
701701
Next
702702
$sNewEquipmentList = StringTrimRight($sNewEquipmentList, 2)
703703
SetLog("Equipment order= " & $sNewEquipmentList, $COLOR_INFO)

COCBot/GUI/MBR GUI Control Tab DropOrder.au3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ Func GUIDropOrder()
7171
Next
7272
If $bDuplicate Then
7373
GUICtrlSetState($g_hBtnDropOrderSet, $GUI_ENABLE) ; enable button to apply new order
74+
_GUICtrlSetImage($g_ahImgDropOrderSet, $g_sLibIconPath, $eIcnRedLight) ; set status indicator to show need to apply new order
7475
Return
7576
Else
7677
GUICtrlSetState($g_hBtnDropOrderSet, $GUI_ENABLE) ; enable button to apply new order
77-
_GUICtrlSetImage($g_ahImgDropOrderSet, $g_sLibIconPath, $eIcnRedLight) ; set status indicator to show need to apply new order
7878
EndIf
7979
EndFunc ;==>GUIDropOrder
8080

0 commit comments

Comments
 (0)