Skip to content

Commit 5aed785

Browse files
committed
Merge pull request #32 from codebroken/beta
Fix not declaring array
2 parents 189f793 + 5eb9057 commit 5aed785

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

BrokenBot.exe

0 Bytes
Binary file not shown.

COCBot/functions/Strategies/Standard/Attack.au3

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ Func Standard_Attack($AttackMethod = 1)
443443
Case 1
444444
$DropX = $FurthestTopLeft[0][0]
445445
$DropY = $FurthestTopLeft[0][1]
446-
$DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]]
446+
Local $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]]
447447
Case 2
448448
$m = (537 - 238) / (535 - 128)
449449
$m2 = (9 - 314) / (430 - 28)
@@ -453,11 +453,11 @@ Func Standard_Attack($AttackMethod = 1)
453453
$DropYa = Round($m2 * $DropXa + $b2)
454454
$DropXb = (($b - $b2) / ($m2 - $m)) + 20
455455
$DropYb = Round($m2 * $DropXb + $b2)
456-
$DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]]
456+
Local $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]]
457457
Case 3
458458
$DropX = $FurthestTopLeft[4][0]
459459
$DropY = $FurthestTopLeft[4][1]
460-
$DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]]
460+
Local $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]]
461461
Case 4
462462
$m = (85 - 388) / (527 - 130)
463463
$m2 = (612 - 314) / (440 - 28)
@@ -467,7 +467,7 @@ Func Standard_Attack($AttackMethod = 1)
467467
$DropYa = Round($m2 * $DropXa + $b2)
468468
$DropXb = (($b - $b2) / ($m2 - $m)) + 20
469469
$DropYb = Round($m2 * $DropXb + $b2)
470-
$DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]]
470+
Local $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]]
471471
Case 6
472472
$m = (85 - 388) / (527 - 130)
473473
$m2 = (612 - 314) / (440 - 28)
@@ -477,11 +477,11 @@ Func Standard_Attack($AttackMethod = 1)
477477
$DropYa = Round($m2 * $DropXa + $b2)
478478
$DropXb = (($b - $b2) / ($m2 - $m)) + 20
479479
$DropYb = Round($m2 * $DropXb + $b2)
480-
$DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]]
480+
Local $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]]
481481
Case 7
482482
$DropX = Round(($FurthestBottomRight[4][0] - $FurthestBottomRight[0][0]) / 4) + $FurthestBottomRight[0][0]
483483
$DropY = Round(($FurthestBottomRight[4][1] - $FurthestBottomRight[0][1]) / 4) + $FurthestBottomRight[0][1]
484-
$DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]]
484+
Local $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]]
485485
Case 8
486486
$m = (537 - 238) / (535 - 128)
487487
$m2 = (9 - 314) / (430 - 28)
@@ -491,11 +491,11 @@ Func Standard_Attack($AttackMethod = 1)
491491
$DropYa = Round($m2 * $DropXa + $b2)
492492
$DropXb = (($b - $b2) / ($m2 - $m)) + 20
493493
$DropYb = Round($m2 * $DropXb + $b2)
494-
$DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]]
494+
Local $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]]
495495
Case 9
496496
$DropX = $FurthestBottomRight[4][0]
497497
$DropY = $FurthestBottomRight[4][1]
498-
$DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]]
498+
Local $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]]
499499
EndSwitch
500500
Standard_dropCC($DropArray, $CC, $AttackMethod, $AimTH)
501501
If _Sleep(100) Then Return

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# BrokenBot.org - Clash of Clans Bot
2-
Latest version: 2.5.8
2+
Latest version: 2.5.9
33

44
## Community
55
Forums available for discussion at: http://brokenbot.org/

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Change Log:
22

3+
### v2.5.9
4+
* Emergency fix for occasional crash
5+
36
### v2.5.8
47
* Additional randomization for deployment of troops and deploy timing
58
* Removed "randomize" check box, it was terrible method of randomization. You are now always somewhat randomized, but you can modify the average delay by adjusting the unit delay and wave delay

0 commit comments

Comments
 (0)