public static GetOption ( Menu menu, string option ) : dynamic | ||
menu | Menu | |
option | string | |
Résultat | dynamic |
public static void DoCombo(bool useW, bool useR, bool harass) { var target = TargetSelector.GetTarget(Trundle.E.Range - Trundle.E.Radius / 2, DamageType.Physical); if (target == null || !target.IsValidTarget() || target.IsZombie) { return; } if (target.Distance(Trundle.Player) <= 550 && Trundle.GetOption(Trundle.CMenu, "TH")) { if (Item.HasItem(Botrk) && Item.CanUseItem(Botrk)) { Item.UseItem(Botrk, target); } if (Item.HasItem(Cutlass) && Item.CanUseItem(Cutlass)) { Item.UseItem(Cutlass, target); } } if (Trundle.R.IsReady() && useR) { Trundle.R.Cast(target); } if (Trundle.W.IsReady() && useW) { Trundle.W.Cast(target); } }
public static void Clear() { var minion = EntityManager.MinionsAndMonsters.GetLaneMinions( EntityManager.UnitTeam.Enemy, Trundle.Player.Position, Trundle.Player.AttackRange); var monster = EntityManager.MinionsAndMonsters.GetJungleMonsters(Trundle.Player.Position, Trundle.Player.AttackRange); UseQwc = Trundle.Player.ManaPercent > Trundle.GetOption(Trundle.MMenu, "WC"); UseQjf = Trundle.Player.ManaPercent > Trundle.GetOption(Trundle.MMenu, "JF"); if (Trundle.W.IsReady() && (minion.Any() && Trundle.GetOption(Trundle.WMenu, "WW") || monster.Any() && Trundle.GetOption(Trundle.WMenu, "WJ"))) { Trundle.W.Cast(Trundle.Player); } }