private void t_Stopped(object sender, EventArgs e)
{
if (Globals.AttackMode || !(Settings.UseCountdownTimer || Settings.UseHourTimer))
{
return;
}
Toggle(false);
ToggleAttack(true);
lblTimeLeft.Text = "Time left: 0:00";
if (Settings.StopAfter)
{
switch (Settings.StopAfterMode)
{
case UserEditable.StopAfterType.Minutes:
// this is here because countdown takes time!
if (MainPanel.StopAfterTimeFinished)
{
LogPanel.Log(string.Format("Reached time limit of {0} minutes", Settings.StopAfterVal));
MainPanel.StopAfterFinish();
StopAttacking(true);
return;
}
break;
//case UserEditable.StopAfterType.Runs:
// // this might happen if user started a run with a countdown instead of an attack
// MainPanel.StopAfterCounter++;
// if (MainPanel.StopAfterCounterFinished)
// {
// LogPanel.Log(string.Format("Reached {0} runs", Settings.StopAfterVal));
// MainPanel.StopAfterFinish();
// StopAttacking(true);
// return;
// }
// break;
}
}
switch (mCountdownType)
{
case AttackingType.CurrentArea:
AttackArea();
break;
case AttackingType.MultiArea:
AttackAreas();
break;
case AttackingType.Mobs:
AttackMobs();
break;
case AttackingType.Rooms:
AttackRooms();
break;
}
}