override public void Reset() { WorthStart = (c, cs) => { return(cs.Started() && [email protected] > s.myHero.SmiteDamage() * 2); // not started or too small }; Worth = (c, cs) => { if ([email protected] > s.myHero.SmiteDamage()) { return(false); // cant smitesteal } else { return(cs.Dragon() || cs.Nashor() || cs.Blue() || cs.Red()); } }; WorthEx = (c, cs) => { return(false); }; Logic = (c, cs) => { if ([email protected] == 0 || [email protected]([email protected]) > 850) { return(false); } else { return(WorthStart(c, cs) && (WorthEx(c, cs) || Worth(c, cs)) && s.myHero.Cast(spell, c.@ref)); } }; spell = Find(); }
public System.Func <bool> T(LeagueSharp.SpellSlot spell) { var gs = [email protected](spell); switch (gs.SData.TargettingType) { case LeagueSharp.SpellDataTargetType.SelfAoe: case LeagueSharp.SpellDataTargetType.Self: return(delegate { return s.myHero.Cast(spell); }); } return(delegate { return false; }); }
public bool Cast(LeagueSharp.SpellSlot spell, LeagueSharp.GameObject target) { return(spell != LeagueSharp.SpellSlot.Unknown && CanUse(spell) && @ref.Spellbook.CastSpell(spell, target)); }
public bool Cast(LeagueSharp.SpellSlot spell) { return(spell != LeagueSharp.SpellSlot.Unknown && CanUse(spell) && @ref.Spellbook.CastSpell(spell)); }
public bool CanUse(LeagueSharp.SpellSlot spell) { return(@ref.Spellbook.GetSpell(spell).State == LeagueSharp.SpellState.Ready); } // optimize it
public bool InRange(Unit target, LeagueSharp.SpellSlot spell) { return(@ref.ServerPosition.Distance([email protected]) < @ref.Spellbook.GetSpell(spell).SData.CastRange); }