Search Results for

    Show / Hide Table of Contents

    Class TargetSelector

    Standard target selector.

    Inheritance
    System.Object
    TargetSelector
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Oasys.SDK
    Assembly: Oasys.SDK.dll
    Syntax
    public class TargetSelector

    Methods

    AttacksLeftToKill(GameObjectBase)

    Gets the amount of attacks left to kill.

    Declaration
    public static float AttacksLeftToKill(GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase target
    Returns
    Type Description
    System.Single

    GetBestChampionTarget(GameObjectBase)

    Gets the best considered champion to target.

    Declaration
    public static GameObjectBase GetBestChampionTarget(GameObjectBase selectedChampion = null)
    Parameters
    Type Name Description
    GameObjectBase selectedChampion
    Returns
    Type Description
    GameObjectBase

    IsAttackable(GameObjectBase)

    Checks whether if the player can attack the target.

    Declaration
    public static bool IsAttackable(GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase target
    Returns
    Type Description
    System.Boolean

    IsAttackable(GameObjectBase, Boolean)

    Checks whether if the player can attack the target.

    Declaration
    public static bool IsAttackable(GameObjectBase target, bool teamCheck = true)
    Parameters
    Type Name Description
    GameObjectBase target
    System.Boolean teamCheck
    Returns
    Type Description
    System.Boolean

    IsDisplacementImmune(GameObjectBase)

    https://leagueoflegends.fandom.com/wiki/Crowd_control#Displacement_Immunity

    Declaration
    public static bool IsDisplacementImmune(GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase target
    Returns
    Type Description
    System.Boolean

    IsInRange(GameObjectBase)

    Checks whether if the target is in the player's base(attackable) range.

    Declaration
    public static bool IsInRange(GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase target
    Returns
    Type Description
    System.Boolean

    IsInvulnerable(GameObjectBase, DamageType, Boolean)

    Checks whether if the target is invulnerable to damage of the specified damagetype, ignore shields default.

    Declaration
    public static bool IsInvulnerable(GameObjectBase target, DamageType damageType, bool ignoreShields = true)
    Parameters
    Type Name Description
    GameObjectBase target
    DamageType damageType
    System.Boolean ignoreShields

    Default true. Ignores spell shields like Sivir E

    Returns
    Type Description
    System.Boolean

    IsKillable(GameObjectBase)

    Checks whether if the target is killable.

    Declaration
    public static bool IsKillable(GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase target
    Returns
    Type Description
    System.Boolean

    IsTotalCCImmune(GameObjectBase)

    https://leagueoflegends.fandom.com/wiki/Crowd_control#Immunity

    Declaration
    public static bool IsTotalCCImmune(GameObjectBase target)
    Parameters
    Type Name Description
    GameObjectBase target
    Returns
    Type Description
    System.Boolean

    ShouldAttackMinion(GameObjectBase)

    Checks whether if the target is in the player's base(attackable) range.

    Declaration
    public static bool ShouldAttackMinion(GameObjectBase minion)
    Parameters
    Type Name Description
    GameObjectBase minion
    Returns
    Type Description
    System.Boolean

    Extension Methods

    Extensions.In<T>(T, T[])
    ☀
    ☾
    In This Article
    • Methods
      • AttacksLeftToKill(GameObjectBase)
      • GetBestChampionTarget(GameObjectBase)
      • IsAttackable(GameObjectBase)
      • IsAttackable(GameObjectBase, Boolean)
      • IsDisplacementImmune(GameObjectBase)
      • IsInRange(GameObjectBase)
      • IsInvulnerable(GameObjectBase, DamageType, Boolean)
      • IsKillable(GameObjectBase)
      • IsTotalCCImmune(GameObjectBase)
      • ShouldAttackMinion(GameObjectBase)
    • Extension Methods
    Back to top
    Generated by DocFX
    ☀
    ☾