public override void OnCombo() { var Target = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (Target == null || !Target.IsValidTarget()) { return; } var mode = Features.First(it => it.NameFeature == "Combo"); if (mode.IsChecked("combo.r.jiws")) { if (R.IsReady() && mode.IsChecked("combo.r") && Target.IsValidTarget(R.Range)) { var rpos = GetBestRPos(Target.ServerPosition.To2D()); if (rpos.Values.First() >= mode.SliderValue("combo.r.minenemies")) { var pos = rpos.Keys.First().To3D(); R.Cast(pos); } } else { if (W.IsReady() && mode.IsChecked("combo.w") && Target.IsValidTarget(W.Range)) { var wpos = GetBestWPos(false, Target); if (wpos != default(Vector3)) { W.Cast(wpos); } } if (Q.IsReady() && mode.IsChecked("combo.q") && Target.IsValidTarget(Q.Range)) { Q.Cast(Target); } } } else { if (R.IsReady() && mode.IsChecked("combo.r") && Target.IsValidTarget(R.Range)) { var rpos = GetBestRPos(Target.ServerPosition.To2D()); if (rpos.Values.First() >= mode.SliderValue("combo.r.minenemies")) { var pos = rpos.Keys.First().To3D(); R.Cast(pos); } } if (W.IsReady() && mode.IsChecked("combo.w") && Target.IsValidTarget(W.Range)) { var wpos = GetBestWPos(false, Target); if (wpos != default(Vector3)) { W.Cast(wpos); } } if (Q.IsReady() && mode.IsChecked("combo.q") && Target.IsValidTarget(Q.Range)) { Q.Cast(Target); } } if (Player.HasBuff("infernalguardiantime")) { EloBuddy.Player.IssueOrder(GameObjectOrder.MovePet, Target); if (Tibbers != null && Tibbers.IsValid && Tibbers.IsInAutoAttackRange(Target)) { EloBuddy.Player.IssueOrder(GameObjectOrder.AutoAttackPet, Target); } } return; }
public override void Combo() { var Target = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (Target == null || !Target.IsValidTarget()) { return; } if (R.IsReady() && combo.IsActive("r") && R.IsInRange(Target)) { if (combo.IsActive("r.jiws")) { if (Player.HasBuff("pyromania_particle")) { var rpos = GetBestRPos(Target.ServerPosition.To2D()); if (rpos.Values.First() >= combo.Value("r.minenemies")) { var pos = rpos.Keys.First().To3D(); R.Cast(pos); } } } else { var rpos = GetBestRPos(Target.ServerPosition.To2D()); if (rpos.Values.First() >= combo.Value("r.minenemies")) { var pos = rpos.Keys.First().To3D(); R.Cast(pos); } } } if (W.IsReady() && combo.IsActive("w") && W.IsInRange(Target)) { W.HitChanceCast(Target, 75); } if (Q.IsReady() && combo.IsActive("q") && Q.IsInRange(Target)) { Q.Cast(Target); } if (Player.HasBuff("infernalguardiantime")) { if (Tibbers != null && Tibbers.IsValid && Tibbers.IsInAutoAttackRange(Target) && Tibbers.CanAttack) { EloBuddy.Player.IssueOrder(GameObjectOrder.AutoAttackPet, Target); } else { EloBuddy.Player.IssueOrder(GameObjectOrder.MovePet, Target); } } return; }