private static void Loading_OnLoadingComplete(EventArgs args) { if (Player.Instance.Hero != Champion.Lux) { return; } SpellsManager.InitializeSpells(); Menus.CreateMenu(); ModeManager.InitializeModes(); DrawingsManager.InitializeDrawings(); Chat.Print("Fairy Lux Loaded!"); Chat.Print("Credits to ExRaZor and Tarakan"); }
public static void Execute() { var target = TargetSelector.GetTarget(SpellsManager.E.Range, DamageType.Magical); if ((target == null) || target.IsInvulnerable) { return; } var rtarget = TargetSelector.GetTarget(SpellsManager.R.Range, DamageType.Magical); if ((rtarget == null) || rtarget.IsInvulnerable) { return; } //Cast E if (ComboMenu["E"].Cast <CheckBox>().CurrentValue) { if (target.IsValidTarget(SpellsManager.E.Range) && SpellsManager.E.IsReady()) { SpellsManager.E.Cast(target); } } if (myhero.HasBuff("Detonate")) { SpellsManager.E.Cast(); } //Cast Q if (ComboMenu["Q"].Cast <CheckBox>().CurrentValue) { if (target.IsValidTarget(SpellsManager.Q.Range) && SpellsManager.Q.IsReady()) { var prediction = SpellsManager.Q.GetPrediction(target); SpellsManager.Q.Cast(target); } } if (ComboMenu["R"].Cast <CheckBox>().CurrentValue&& rtarget.Health > rtarget.GetRealDamage()) { if (SpellsManager.R.IsReady() && rtarget.IsValidTarget(SpellsManager.R.Range) && Prediction.Health.GetPrediction(rtarget, SpellsManager.R.CastDelay) <= SpellsManager.GetRealDamage(rtarget, SpellSlot.R)) { var prediction = SpellsManager.R.GetPrediction(rtarget); SpellsManager.R.Cast(rtarget); } } }
public static void Execute4() { var etarget = TargetSelector.GetTarget(SpellsManager.E.Range, DamageType.Magical); if ((etarget == null) || etarget.IsInvulnerable) { return; } //Cast E if (SpellsManager.E.IsReady() && etarget.IsValidTarget((SpellsManager.E.Range)) && Prediction.Health.GetPrediction(etarget, SpellsManager.E.CastDelay) <= SpellsManager.GetRealDamage(etarget, SpellSlot.E)) { SpellsManager.E.Cast(etarget); } }
public static void Execute2() { var qtarget = TargetSelector.GetTarget(SpellsManager.Q.Range, DamageType.Magical); if ((qtarget == null) || qtarget.IsInvulnerable) { return; } //Cast Q if (SpellsManager.Q.IsReady() && qtarget.IsValidTarget((SpellsManager.Q.Range)) && Prediction.Health.GetPrediction(qtarget, SpellsManager.Q.CastDelay) <= SpellsManager.GetRealDamage(qtarget, SpellSlot.Q)) { var prediction = SpellsManager.Q.GetPrediction(qtarget); SpellsManager.Q.Cast(qtarget); } }