Пример #1
0
 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();
 }
Пример #2
0
        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; });
        }
Пример #3
0
 public bool Cast(LeagueSharp.SpellSlot spell, LeagueSharp.GameObject target)
 {
     return(spell != LeagueSharp.SpellSlot.Unknown && CanUse(spell) && @ref.Spellbook.CastSpell(spell, target));
 }
Пример #4
0
 public bool Cast(LeagueSharp.SpellSlot spell)
 {
     return(spell != LeagueSharp.SpellSlot.Unknown && CanUse(spell) && @ref.Spellbook.CastSpell(spell));
 }
Пример #5
0
 public bool CanUse(LeagueSharp.SpellSlot spell)
 {
     return(@ref.Spellbook.GetSpell(spell).State == LeagueSharp.SpellState.Ready);
 }                                                                                                                                // optimize it
Пример #6
0
 public bool InRange(Unit target, LeagueSharp.SpellSlot spell)
 {
     return(@ref.ServerPosition.Distance([email protected]) < @ref.Spellbook.GetSpell(spell).SData.CastRange);
 }