public override void OnCombo() { if (IsSpellActive("Q") && Environment.TickCount - QFollowTick >= QFollowTime) { if (Cast_BasicSkillshot_Enemy(Q, SimpleTs.DamageType.Magical, 0, HitChance.High) != null) { QFollowTick = Environment.TickCount; } } if (IsSpellActive("Q Follow") && QFollowTarget.ShouldCast() && Q.IsReady()) { Q.Cast(); } Cast_Shield_onFriend(W, GetValue("W Shield at %"), true); if (IsSpellActive("W for Engage")) { EngageFriendLatern(); } if (GetValue("E to Me till % health") > 0) { if (GetHealthPercent(MyHero) > GetValue("E to Me till % health")) { Cast_E("ToMe"); } else { Cast_E(); } } if (GetValue("R if Hit") > 0) { if (MyHero.CountEnemysInRange((int)R.Range) >= GetValue("R if Hit")) { R.Cast(); } } }
private void OnUpdate(EventArgs args) { switch (Orbwalker.CurrentMode) { case Orbwalker.Mode.Combo: if (ChampionMenu.Item("useQ_Combo").GetValue <bool>() && Environment.TickCount - QFollowTick >= QFollowTime) { if (Cast_BasicSkillshot_Enemy(Q) != null) { QFollowTick = Environment.TickCount; } } if (ChampionMenu.Item("useQ_Combo_follow").GetValue <bool>() && QFollowTarget.ShouldCast() && Q.IsReady()) { Q.Cast(); } Cast_Shield_onFriend(W, ChampionMenu.Item("useW_Combo_Shield").GetValue <Slider>().Value, true); if (ChampionMenu.Item("useW_Combo_Engage").GetValue <bool>()) { EngageFriendLatern(); } if (ChampionMenu.Item("useE_Combo").GetValue <Slider>().Value > 0) { if (PUC.Player.Health / PUC.Player.MaxHealth * 100 > ChampionMenu.Item("useE_Combo").GetValue <Slider>().Value) { Cast_E("ToMe"); } else { Cast_E(); } } if (ChampionMenu.Item("useR_Combo_minHit").GetValue <Slider>().Value >= 1) { if (EnemysinRange(R.Range, ChampionMenu.Item("useR_Combo_minHit").GetValue <Slider>().Value)) { R.Cast(); } } break; case Orbwalker.Mode.Harass: if (ChampionMenu.Item("useQ_Harass").GetValue <bool>() && Environment.TickCount - QFollowTick >= QFollowTime && ManamanagerAllowCast("ManaManager_Harass")) { if (Cast_BasicSkillshot_Enemy(Q) != null) { QFollowTick = Environment.TickCount; } } if (ChampionMenu.Item("useE_Harass").GetValue <Slider>().Value > 0) { if (PUC.Player.Health / PUC.Player.MaxHealth * 100 > ChampionMenu.Item("useE_Harass").GetValue <Slider>().Value) { Cast_E("ToMe"); } else { Cast_E(); } } if (ChampionMenu.Item("useW_Harass_safe").GetValue <bool>()) { SafeFriendLatern(); } break; case Orbwalker.Mode.LaneClear: if (ChampionMenu.Item("useE_LaneClear").GetValue <bool>()) { Cast_BasicSkillshot_AOE_Farm(E); } break; } }