public static AIHeroClient GetTargetNoCollision(Spell2 spell, bool ignoreShield = true, IEnumerable <AIHeroClient> ignoredChamps = null, Vector3?rangeCheckFrom = null) { var t = GetTarget(ObjectManager.Player, spell.Range, spell.DamageType, ignoreShield, ignoredChamps, rangeCheckFrom); if (spell.Collision && spell.GetPrediction(t).Hitchance != HitChance.Collision) { return(t); } return(null); }
public static AIHeroClient GetTargetNoCollision(Spell2 spell, bool ignoreShield = true, IEnumerable<AIHeroClient> ignoredChamps = null, Vector3? rangeCheckFrom = null) { var t = GetTarget(ObjectManager.Player, spell.Range, spell.DamageType, ignoreShield, ignoredChamps, rangeCheckFrom); if (spell.Collision && spell.GetPrediction(t).Hitchance != HitChance.Collision) { return t; } return null; }
public static bool IsReady(this Spell2 spell, int t = 0) { return(IsReady(spell.Instance, t)); }