private void AllStarCombo(AIHeroClient target) { actionQueue.EnqueueAction( comboQueue, () => r.IsReady() && r.Instance.ToggleState == 0 && player.IsVisible, () => { zedComboSelector.AllStarAnimation(); r.Cast(target); }, () => r.IsReady() && r.Instance.ToggleState != 0 && player.IsVisible); actionQueue.EnqueueAction( comboQueue, () => true, () => zedItems.UseItems(target), () => true); actionQueue.EnqueueAction( comboQueue, () => w.UseOnCombo && shadows.CanCast && player.Mana > w.ManaCost, () => shadows.Cast(target.ServerPosition), () => target.IsDead || target.IsZombie || w.Instance.ToggleState != 0 || !w.UseOnCombo || player.Mana <= w.ManaCost); actionQueue.EnqueueAction( comboQueue, () => q.UseOnCombo && q.IsReady(), () => ObjectManager.Player.Spellbook.CastSpell(SpellSlot.Q, q.GetPrediction(target).CastPosition), () => target.IsDead || target.IsZombie || !q.IsReady() || !q.UseOnCombo); actionQueue.EnqueueAction( comboQueue, () => w.Instance.ToggleState != 0 && e.UseOnCombo && e.IsReady() && e.CanCast(target), () => e.Cast(), () => target.IsDead || target.IsZombie || w.Instance.ToggleState == 0 || !e.IsReady() || !e.UseOnCombo || !e.CanCast(target)); }
private void AllStarCombo(Obj_AI_Hero target) { actionQueue.EnqueueAction( comboQueue, () => r.IsReady() && r.Instance.ToggleState == 0 && player.IsVisible, () => { zedComboSelector.AllStarAnimation(); r.Cast(target); }, () => r.IsReady() && r.Instance.ToggleState != 0 && player.IsVisible); actionQueue.EnqueueAction( comboQueue, () => true, () => zedItems.UseItems(target), () => true); actionQueue.EnqueueAction( comboQueue, () => w.UseOnCombo && shadows.CanCast && player.Mana > w.ManaCost, () => shadows.Cast(target.ServerPosition), () => target.IsDead || target.IsZombie || w.Instance.ToggleState != 0 || !w.UseOnCombo || player.Mana <= w.ManaCost); actionQueue.EnqueueAction( comboQueue, () => w.Instance.ToggleState != 0 && q.UseOnCombo && q.IsReady(), () => q.Cast(q.GetPrediction(target).CastPosition), () => target.IsDead || target.IsZombie || !q.IsReady() || !q.UseOnCombo || player.Mana <= q.ManaCost); actionQueue.EnqueueAction( comboQueue, () => w.Instance.ToggleState != 0 && e.UseOnCombo && e.IsReady() && e.CanCast(target), () => e.Cast(), () => target.IsDead || target.IsZombie || w.Instance.ToggleState == 0 || !e.IsReady() || !e.UseOnCombo || !e.CanCast(target)); //Console.WriteLine("star combo2"); }