diff --git a/BrokenBot.exe b/BrokenBot.exe index c0a7126..e99685e 100644 Binary files a/BrokenBot.exe and b/BrokenBot.exe differ diff --git a/COCBot/functions/Strategies/Standard/Attack.au3 b/COCBot/functions/Strategies/Standard/Attack.au3 index b47e240..d90a289 100644 --- a/COCBot/functions/Strategies/Standard/Attack.au3 +++ b/COCBot/functions/Strategies/Standard/Attack.au3 @@ -443,7 +443,7 @@ Func Standard_Attack($AttackMethod = 1) Case 1 $DropX = $FurthestTopLeft[0][0] $DropY = $FurthestTopLeft[0][1] - $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]] + Local $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]] Case 2 $m = (537 - 238) / (535 - 128) $m2 = (9 - 314) / (430 - 28) @@ -453,11 +453,11 @@ Func Standard_Attack($AttackMethod = 1) $DropYa = Round($m2 * $DropXa + $b2) $DropXb = (($b - $b2) / ($m2 - $m)) + 20 $DropYb = Round($m2 * $DropXb + $b2) - $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]] + Local $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]] Case 3 $DropX = $FurthestTopLeft[4][0] $DropY = $FurthestTopLeft[4][1] - $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]] + Local $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]] Case 4 $m = (85 - 388) / (527 - 130) $m2 = (612 - 314) / (440 - 28) @@ -467,7 +467,7 @@ Func Standard_Attack($AttackMethod = 1) $DropYa = Round($m2 * $DropXa + $b2) $DropXb = (($b - $b2) / ($m2 - $m)) + 20 $DropYb = Round($m2 * $DropXb + $b2) - $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]] + Local $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]] Case 6 $m = (85 - 388) / (527 - 130) $m2 = (612 - 314) / (440 - 28) @@ -477,11 +477,11 @@ Func Standard_Attack($AttackMethod = 1) $DropYa = Round($m2 * $DropXa + $b2) $DropXb = (($b - $b2) / ($m2 - $m)) + 20 $DropYb = Round($m2 * $DropXb + $b2) - $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]] + Local $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]] Case 7 $DropX = Round(($FurthestBottomRight[4][0] - $FurthestBottomRight[0][0]) / 4) + $FurthestBottomRight[0][0] $DropY = Round(($FurthestBottomRight[4][1] - $FurthestBottomRight[0][1]) / 4) + $FurthestBottomRight[0][1] - $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]] + Local $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]] Case 8 $m = (537 - 238) / (535 - 128) $m2 = (9 - 314) / (430 - 28) @@ -491,11 +491,11 @@ Func Standard_Attack($AttackMethod = 1) $DropYa = Round($m2 * $DropXa + $b2) $DropXb = (($b - $b2) / ($m2 - $m)) + 20 $DropYb = Round($m2 * $DropXb + $b2) - $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]] + Local $DropArray[5][2]=[[$DropXa, $DropYa], [0, 0], [0, 0], [0, 0], [$DropXb, $DropYb]] Case 9 $DropX = $FurthestBottomRight[4][0] $DropY = $FurthestBottomRight[4][1] - $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]] + Local $DropArray[5][2]=[[$DropX, $DropY], [0, 0], [0, 0], [0, 0], [$DropX, $DropY]] EndSwitch Standard_dropCC($DropArray, $CC, $AttackMethod, $AimTH) If _Sleep(100) Then Return diff --git a/README.md b/README.md index e78fd57..198e084 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # BrokenBot.org - Clash of Clans Bot -Latest version: 2.5.8 +Latest version: 2.5.9 ## Community Forums available for discussion at: http://brokenbot.org/ diff --git a/changelog.md b/changelog.md index 5be7825..5d51c18 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ ## Change Log: +### v2.5.9 +* Emergency fix for occasional crash + ### v2.5.8 * Additional randomization for deployment of troops and deploy timing * 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