private static void OnTick(EventArgs args)
{
//if (Player.Instance.ChampionsKilled > kills)
//{
// kills = Player.Instance.ChampionsKilled;
// if (Environment.TickCount - lastEmote > 10000)
// {
// lastEmote = Environment.TickCount;
// Player.DoMasteryBadge();
// }
//}
Modes.ForEach(
mode =>
{
try
{
if (mode.ShouldBeExecuted())
{
mode.Execute();
}
}
catch (Exception e)
{
Logger.Log(LogLevel.Error, "Error in mode '{0}'\n{1}", mode.GetType().Name, e);
}
});
}