✨Modifier
Table to work with CModifier
.
CModifier
.You can get modifiers from NPC.GetModifier
function.
GetName(modifier: CModifier
): string
CModifier
): string
modifier
modifier to get name of
Returns the name of the modifier.
GetClass(modifier: CModifier
): string
CModifier
): string
modifier
Returns the name of the modifier's class.
GetModifierAura(modifier: CModifier
): string
CModifier
): string
Deprecated.
modifier
modifier to get aura of
Should return the name of the modifier's aura, but instead, it returns an empty string in all the cases I have tested.
GetSerialNumber(modifier: CModifier
): integer
CModifier
): integer
Deprecated.
modifier
modifier to get serial number of
Should return the serial number of the modifier, but instead, it returns 0 in all the cases I have tested.
GetStringIndex(modifier: CModifier
): integer
CModifier
): integer
Deprecated.
modifier
modifier to get string index of
Should return the string index of the modifier, but instead, it returns 0 in all the cases I have tested.
GetIndex(modifier: CModifier
): GetIndex
CModifier
): GetIndex
modifier
modifier to get index of
Returns the hero's modifier index. The index is an incrementable value with each new modifier the NPC gets
GetCreationTime(modifier: CModifier
): number
CModifier
): number
modifier
modifier to get creation time of
Returns the game time when the modifier was created.
GetCreationFrame(modifier: CModifier
): integer
CModifier
): integer
modifier
modifier to get creation frame of
Returns the frame when the modifier was created. You could get current frame count from
GlobalVars.GetFrameCount
function.
GetLastAppliedTime(modifier: CModifier
): number
CModifier
): number
modifier
modifier to get last applied time of
Returns the game time when the modifier was last applied. Don't know cases when it can be
different from GetCreationTime
.
GetDuration(modifier: CModifier
): number
CModifier
): number
modifier
modifier to get duration of
Returns the duration of the modifier.
GetDieTime(modifier: CModifier
): number
CModifier
): number
modifier
modifier to get expiration time of
Returns the game time when the modifier will expire.
GetStackCount(modifier: CModifier
): integer
CModifier
): integer
modifier
modifier to get stack count of
If there are stacks of the modifier, it returns the amount of stacks; otherwise, it returns 0.
GetAuraSearchTeam(modifier: CModifier
): integer
CModifier
): integer
Deprecated.
modifier
modifier to get aura search team of
Returns aura search team of the modifier.
GetAuraSearchType(modifier: CModifier
): integer
CModifier
): integer
Deprecated.
modifier
modifier to get aura search type of
Returns aura search type of the modifier.
GetAuraSearchFlags(modifier: CModifier
): integer
CModifier
): integer
Deprecated.
modifier
modifier to get aura search flags of
Returns aura search flags of the modifier.
GetAuraRadius(modifier: CModifier
): number
CModifier
): number
Deprecated.
modifier
modifier to get aura radius of
Returns aura radius of the modifier.
GetTeam(modifier: CModifier
): Enum.TeamType
CModifier
): Enum.TeamType
modifier
modifier to get team of
Returns team of the modifier.
GetAttributes(modifier: CModifier
): integer
CModifier
): integer
Deprecated.
modifier
modifier to get attributes of
Returns the attributes of the modifier.
IsAura(modifier: CModifier
): boolean
CModifier
): boolean
Deprecated.
modifier
modifier to check
Returns true
if the modifier is an aura.
IsAuraActiveOnDeath(modifier: CModifier
): boolean
CModifier
): boolean
Deprecated.
modifier
modifier to check
Returns true
if the modifier aura active on death.
GetMarkedForDeletion(modifier: CModifier
): boolean
CModifier
): boolean
Deprecated.
modifier
modifier to check
Returns true
if the modifier is marked for deletion.
GetAuraIsHeal(modifier: CModifier
): boolean
CModifier
): boolean
Deprecated.
modifier
modifier to check
Returns true
if aura is heal.
GetProvidedByAura(modifier: CModifier
): boolean
CModifier
): boolean
modifier
modifier to check
Returns true
if modifier is provided by an aura.
GetPreviousTick(modifier: CModifier
): number
CModifier
): number
modifier
modifier to get last tick time of
Returns the game time of the last modifier tick (~0.033 seconds).
GetThinkInterval(modifier: CModifier
): number
CModifier
): number
Deprecated.
modifier
modifier to get think interval of
Returns the modifier's think interval.
GetThinkTimeAccumulator(modifier: CModifier
): number
CModifier
): number
Deprecated.
modifier
modifier to get think time accumulator of
Return the modifier's think interval time accumulator.
IsCurrentlyInAuraRange(modifier: CModifier
): boolean
CModifier
): boolean
modifier
modifier to check
Returns true
if is in aura range.
modifier
modifier to get ability of
Returns the modifier's ability.
IsDebuff(modifier: CModifier
): boolean
CModifier
): boolean
modifier
modifier to check
Returns true
if the modifier is a debuff.
modifier
modifier to get field from
fieldName
string
field name
dbgPrint
boolean
print possible errors
Returns value of the field.
Last updated