Skip to content

Commit

Permalink
Update Attack.au3
Browse files Browse the repository at this point in the history
  • Loading branch information
codebroken committed May 20, 2015
1 parent c148b00 commit 60e9e93
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions COCBot/functions/Strategies/Standard/Attack.au3
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Func Standard_DropOnEdge($troop, $edge, $number, $slotsPerEdge = 0, $edge2 = -1,
$BufferDist = GUICtrlRead($sldAcc) + 10
$BufferDist = $BufferDist + _Random_Gaussian(20, 8)
If $BufferDist < (GUICtrlRead($sldAcc) + 10) Then $BufferDist = GUICtrlRead($sldAcc) + 10
$htimer = TimerInit()
Switch $troop
Case $eBarbarian
$Pen = $pBarbarian
Expand Down Expand Up @@ -105,7 +104,6 @@ Func Standard_DropOnEdge($troop, $edge, $number, $slotsPerEdge = 0, $edge2 = -1,
$posX = Round(_Random_Gaussian($posX, 3))
$posY = Round(_Random_Gaussian($posY, 3))
Click($posX, $posY, Ceiling($nbTroopsGoneDec - $nbTroopsGoneRound), 0, $Center, $BufferDist)
SetLog(TimerDiff($htimer))
$nbTroopsGoneRound += Ceiling($nbTroopsGoneDec - $nbTroopsGoneRound)
If GUICtrlRead($sldAcc) < 100 Then
If _Sleep(Standard_SetSleep(0)) Then Return
Expand All @@ -124,7 +122,6 @@ Func Standard_DropOnEdge($troop, $edge, $number, $slotsPerEdge = 0, $edge2 = -1,
$posX2 = Round(_Random_Gaussian($posX2, 3))
$posY2 = Round(_Random_Gaussian($posY2, 3))
Click($posX2, $posY2, Ceiling($nbTroopsGoneDec - $nbTroopsGoneRound), 0, $Center, $BufferDist)
SetLog(TimerDiff($htimer))
$nbTroopsGoneRound += Ceiling($nbTroopsGoneDec - $nbTroopsGoneRound)
If GUICtrlRead($sldAcc) < 100 Then
If _Sleep(Standard_SetSleep(0)) Then Return
Expand Down

0 comments on commit 60e9e93

Please sign in to comment.