private static void Game_OnGameUpdate(EventArgs args) { CHeal.AutoHeal(); CUltimate.SmartSave(); CUltimate.TeamfightUltimate(); if (CConfig.ConfigMenu.Item("comboActive").GetValue <KeyBind>().Active) { CCombo.Combo(); } foreach (var enemy in ObjectHandler.Get <Obj_AI_Hero>().Where(enemy => enemy.IsValidTarget(CSpell.E.Range))) { if (enemy.HasBuffOfType(BuffType.Stun) || enemy.HasBuffOfType(BuffType.Snare) || enemy.HasBuffOfType(BuffType.Charm) || enemy.HasBuffOfType(BuffType.Fear) || enemy.HasBuffOfType(BuffType.Taunt) || enemy.HasBuffOfType(BuffType.Suppression) || enemy.IsStunned || enemy.HasBuff("Recall")) { CSpell.E.Cast(enemy); } else { CSpell.E.CastIfHitchanceEquals(enemy, HitChance.Immobile, true); } } }
private static void Game_OnGameUpdate(EventArgs args) { CHeal.AutoHeal(); CUltimate.SmartSave(); CUltimate.TeamfightUltimate(); if (CConfig.ConfigMenu.Item("comboActive").GetValue <KeyBind>().Active) { CCombo.Combo(); } }