private void OnPostAttack(object sender, PostAttackEventArgs args) { try { switch (Global.Orbwalker.Mode) { case OrbwalkingMode.Combo: Combo.PostAttack(sender, args); break; case OrbwalkingMode.Mixed: Harass.PostAttack(sender, args); break; case OrbwalkingMode.Laneclear: LaneClear.PostAttack(sender, args); JungleClear.PostAttack(sender, args); break; } } catch (Exception e) { Console.WriteLine(e); throw; } }
public static void PostAttack(object sender, PostAttackEventArgs args) { switch (Global.Orbwalker.Mode) { case OrbwalkingMode.Combo: Combo.PostAttack(sender, args); break; case OrbwalkingMode.Mixed: Harass.PostAttack(sender, args); break; case OrbwalkingMode.Laneclear: LaneClear.PostAttack(sender, args); JungleClear.PostAttack(sender, args); break; } }