Class TargetTraitsDef
Target and immunity traits, distinct from damage mitigation.
public sealed class TargetTraitsDef
- Inheritance
-
TargetTraitsDef
- Inherited Members
Constructors
TargetTraitsDef(ulong, DamageMask, bool, bool, bool, bool, bool)
Creates eligibility data.
public TargetTraitsDef(ulong tags = 0, DamageMask immunities = DamageMask.None, bool ignoreDamage = false, bool ignoreStun = false, bool lockSpeed = false, bool untargetable = false, bool blockImmune = false)
Parameters
tagsulongimmunitiesDamageMaskignoreDamageboolignoreStunboollockSpeedbooluntargetableboolblockImmunebool
Properties
BlockImmune
Cannot be blocked.
public bool BlockImmune { get; }
Property Value
IgnoreDamage
Ignores all damage requests.
public bool IgnoreDamage { get; }
Property Value
IgnoreStun
Ignores stun modifiers.
public bool IgnoreStun { get; }
Property Value
Immunities
Immune damage channels, including true damage when selected.
public DamageMask Immunities { get; }
Property Value
LockSpeed
Ignores speed multipliers.
public bool LockSpeed { get; }
Property Value
Tags
Author-defined eligibility bits.
public ulong Tags { get; }
Property Value
Untargetable
Cannot be selected for attacks.
public bool Untargetable { get; }