Exemplo n.º 1
0
 public static bool Cast(this SummonerSpell spell, Vector3 position)
 {
     return(IsReady(spell) && ObjectManager.Player.Spellbook.CastSpell(spell.Slot, position));
 }
Exemplo n.º 2
0
 public static bool Cast(this SummonerSpell spell, Obj_AI_Hero tgHero)
 {
     return(IsReady(spell) && (ObjectManager.Player.Distance(tgHero, true) < spell.Range * spell.Range) &&
            ObjectManager.Player.Spellbook.CastSpell(spell.Slot, tgHero ?? ObjectManager.Player));
 }
Exemplo n.º 3
0
 public static bool Cast(this SummonerSpell spell, Vector2 position)
 {
     return(IsReady(spell) && (ObjectManager.Player.Distance(position, true) < spell.Range * spell.Range) &&
            ObjectManager.Player.Spellbook.CastSpell(spell.Slot, position.To3D()));
 }
Exemplo n.º 4
0
 public static bool IsReady(this SummonerSpell spell)
 {
     return(spell.Slot != SpellSlot.Unknown &&
            ObjectManager.Player.Spellbook.CanUseSpell(spell.Slot) == SpellState.Ready);
 }