public static void Combo() { var Choice = 0; //Cast W = 1 //Cast Q = 2 //Cast E = 3 //Cast R = 4 //AA = 5 var _Target = TargetSelector.GetTarget(1500, DamageType.Magical); if (Program._Ignite != null && Program._Ignite.IsReady()) { var _IgniteTarget = TargetSelector.GetTarget(Program._Ignite.Range, DamageType.True); if (_IgniteTarget != null && _IgniteTarget.IsValid) { if (Program._Ignite.IsInRange(_Target)) { if (_IgniteTarget.Health < Damage.GetIgniteDamage(_Target)) { Program._Ignite.Cast(_IgniteTarget); } } } } if (_Target != null && _Target.IsValid) { if (Program.ComboMenu["cUseW"].Cast <CheckBox>().CurrentValue&& Program._W.IsReady() && Program._W.IsInRange(_Target)) { Choice = 1; } if (Program.ComboMenu["cUseQ"].Cast <CheckBox>().CurrentValue&& Program._Q.IsReady() && Program._Q.IsInRange(_Target) && Orbwalker.ValidAzirSoldiers.Count > 0) { Choice = 2; } if (Program.ComboMenu["cUseEGC"].Cast <CheckBox>().CurrentValue&& Program._E.IsReady() && !Program._Q.IsInRange(_Target)) { Choice = 3; } if (Program.ComboMenu["cUseE"].Cast <CheckBox>().CurrentValue&& Program._E.IsReady() && Program._E.IsInRange(_Target) && Orbwalker.ValidAzirSoldiers.Count > 0) { Choice = 3; } if (Program.ComboMenu["cUseAA"].Cast <CheckBox>().CurrentValue&& Orbwalker.CanAutoAttack) { Choice = 5; } if (Program.ComboMenu["cUseAA"].Cast <CheckBox>().CurrentValue&& Orbwalker.CanAutoAttack) { Choice = 5; } //if (Program.ComboMenu["cUseE"].Cast<CheckBox>().CurrentValue && Program._E.IsReady() && // Program._E.IsInRange(_Target)) //{ // Choice = 3; //} if (Program.ComboMenu["cUseAA"].Cast <CheckBox>().CurrentValue&& Orbwalker.CanAutoAttack) { Choice = 5; } if (Program.ComboMenu["cUseAA"].Cast <CheckBox>().CurrentValue&& Orbwalker.CanAutoAttack) { Choice = 5; } if (Program.ComboMenu["cUseR"].Cast <CheckBox>().CurrentValue&& Program._R.IsReady() && Program._R.IsInRange(_Target)) { Choice = 4; } switch (Choice) { case 1: { if (!Orbwalker.IsAutoAttacking) { Program._W.Cast(_Target); } break; } case 2: { if (!Orbwalker.IsAutoAttacking) { Program._Q.Cast(_Target); } break; } case 5: { if (!Orbwalker.IsAutoAttacking && Orbwalker.ValidAzirSoldiers.Count > 0) { Orbwalker.ForcedTarget = _Target; } break; } case 3: { if (!Orbwalker.IsAutoAttacking) { Program._E.Cast(_Target); } break; } case 4: { if (!Orbwalker.IsAutoAttacking) { Program._R.Cast(_Target); } break; } } } }
public static void KillSteal() { var _Target = TargetSelector.GetTarget(1500, DamageType.Magical); if (_Target != null && _Target.IsValid) { if (Program.KSMenu["ksUseWQ"].Cast <CheckBox>().CurrentValue) { if (_Target.Health < Damage.GetKSQDamage(_Target)) { if (Program._W.IsReady() && Program._Q.IsReady()) { Program._W.Cast(_Target); if (Program._Q.IsInRange(_Target)) { Program._Q.Cast(_Target); } else { if (Program.KSMenu["ksUseE"].Cast <CheckBox>().CurrentValue) { foreach (var soldier in Orbwalker.ValidAzirSoldiers) { Program._E.Cast(soldier); } if (Program._Q.IsInRange(_Target)) { Program._Q.Cast(_Target); } } } } } } if (Program.KSMenu["ksUseR"].Cast <CheckBox>().CurrentValue) { if (_Target.Health < Damage.GetRDamage(_Target)) { if (Program._R.IsReady()) { if (Program._R.IsInRange(_Target)) { Program._R.Cast(_Target); } else { if (Program.KSMenu["ksUseE"].Cast <CheckBox>().CurrentValue) { foreach (var soldier in Orbwalker.ValidAzirSoldiers) { Program._E.Cast(soldier); } if (Program._R.IsInRange(_Target)) { Program._R.Cast(_Target); } } } } } } } }