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()
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
Returns
Type |
Description |
System.Single |
|
GetBestChampionTarget(GameObjectBase)
Gets the best considered champion to target.
Declaration
public static GameObjectBase GetBestChampionTarget(GameObjectBase selectedChampion = null)
Parameters
Returns
IsAttackable(GameObjectBase)
Checks whether if the player can attack the target.
Declaration
public static bool IsAttackable(GameObjectBase target)
Parameters
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
Returns
Type |
Description |
System.Boolean |
|
IsDisplacementImmune(GameObjectBase)
Declaration
public static bool IsDisplacementImmune(GameObjectBase target)
Parameters
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
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
Returns
Type |
Description |
System.Boolean |
|
IsTotalCCImmune(GameObjectBase)
Declaration
public static bool IsTotalCCImmune(GameObjectBase target)
Parameters
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
Returns
Type |
Description |
System.Boolean |
|
Extension Methods