Modifier

Table to work with CModifier.

You can get modifiers from NPC.GetModifierfunction.

GetName(modifier: CModifier): string

Name
Type
Description

modifier

modifier to get name of

Returns the name of the modifier.


GetClass(modifier: CModifier): string

Name
Type
Description

modifier

Returns the name of the modifier's class.


GetModifierAura(modifier: CModifier): string

Deprecated.

Name
Type
Description

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

Deprecated.

Name
Type
Description

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

Deprecated.

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

modifier

modifier to get creation time of

Returns the game time when the modifier was created.


GetCreationFrame(modifier: CModifier): integer

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

modifier

modifier to get duration of

Returns the duration of the modifier.


GetDieTime(modifier: CModifier): number

Name
Type
Description

modifier

modifier to get expiration time of

Returns the game time when the modifier will expire.


GetStackCount(modifier: CModifier): integer

Name
Type
Description

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

Deprecated.

Name
Type
Description

modifier

modifier to get aura search team of

Returns aura search team of the modifier.


GetAuraSearchType(modifier: CModifier): integer

Deprecated.

Name
Type
Description

modifier

modifier to get aura search type of

Returns aura search type of the modifier.


GetAuraSearchFlags(modifier: CModifier): integer

Deprecated.

Name
Type
Description

modifier

modifier to get aura search flags of

Returns aura search flags of the modifier.


GetAuraRadius(modifier: CModifier): number

Deprecated.

Name
Type
Description

modifier

modifier to get aura radius of

Returns aura radius of the modifier.


GetTeam(modifier: CModifier): Enum.TeamType

Name
Type
Description

modifier

modifier to get team of

Returns team of the modifier.


GetAttributes(modifier: CModifier): integer

Deprecated.

Name
Type
Description

modifier

modifier to get attributes of

Returns the attributes of the modifier.


IsAura(modifier: CModifier): boolean

Deprecated.

Name
Type
Description

modifier

modifier to check

Returns true if the modifier is an aura.


IsAuraActiveOnDeath(modifier: CModifier): boolean

Deprecated.

Name
Type
Description

modifier

modifier to check

Returns true if the modifier aura active on death.


GetMarkedForDeletion(modifier: CModifier): boolean

Deprecated.

Name
Type
Description

modifier

modifier to check

Returns true if the modifier is marked for deletion.


GetAuraIsHeal(modifier: CModifier): boolean

Deprecated.

Name
Type
Description

modifier

modifier to check

Returns true if aura is heal.


GetProvidedByAura(modifier: CModifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if modifier is provided by an aura.


GetPreviousTick(modifier: CModifier): number

Name
Type
Description

modifier

modifier to get last tick time of

Returns the game time of the last modifier tick (~0.033 seconds).


GetThinkInterval(modifier: CModifier): number

Deprecated.

Name
Type
Description

modifier

modifier to get think interval of

Returns the modifier's think interval.


GetThinkTimeAccumulator(modifier: CModifier): number

Deprecated.

Name
Type
Description

modifier

modifier to get think time accumulator of

Return the modifier's think interval time accumulator.


IsCurrentlyInAuraRange(modifier: CModifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if is in aura range.


GetAbility(modifier: CModifier): CAbility

Name
Type
Description

modifier

modifier to get ability of

Returns the modifier's ability.


IsDebuff(modifier: CModifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if the modifier is a debuff.


GetField(modifier: CModifier, fieldName: string, dbgPrint: boolean): any

Name
Type
Description

modifier

modifier to get field from

fieldName

string

field name

dbgPrint

boolean

print possible errors

Returns value of the field.

Last updated