Modifier

Table to work with CModifier. You can get modifiers from NPC.GetModifierfunction.

GetName

Modifier.GetName(modifier): string

Name
Type
Description

modifier

modifier to get name of

Returns the name of the modifier.

GetClass

Modifier.GetClass(modifier): string

Name
Type
Description

modifier

Returns the name of the modifier's class.

GetModifierAura

circle-info

Deprecated.

Modifier.GetModifierAura(modifier): string

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

circle-info

Deprecated.

Modifier.GetSerialNumber(modifier): integer

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

circle-info

Deprecated.

Modifier.GetStringIndex(modifier): integer

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.GetIndex(modifier): 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.GetCreationTime(modifier): number

Name
Type
Description

modifier

modifier to get creation time of

Returns the game time when the modifier was created.

GetCreationFrame

Modifier.GetCreationFrame(modifier): 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.GetLastAppliedTime(modifier): 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.GetDuration(modifier): number

Name
Type
Description

modifier

modifier to get duration of

Returns the duration of the modifier.

GetDieTime

Modifier.GetDieTime(modifier): number

Name
Type
Description

modifier

modifier to get expiration time of

Returns the game time when the modifier will expire.

GetStackCount

Modifier.GetStackCount(modifier): 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

circle-info

Deprecated.

Modifier.GetAuraSearchTeam(modifier): integer

Name
Type
Description

modifier

modifier to get aura search team of

Returns aura search team of the modifier.

GetAuraSearchType

circle-info

Deprecated.

Modifier.GetAuraSearchType(modifier): integer

Name
Type
Description

modifier

modifier to get aura search type of

Returns aura search type of the modifier.

GetAuraSearchFlags

circle-info

Deprecated.

Modifier.GetAuraSearchFlags(modifier): integer

Name
Type
Description

modifier

modifier to get aura search flags of

Returns aura search flags of the modifier.

GetAuraRadius

circle-info

Deprecated.

Modifier.GetAuraRadius(modifier): number

Name
Type
Description

modifier

modifier to get aura radius of

Returns aura radius of the modifier.

GetTeam

Modifier.GetTeam(modifier): Enum.TeamNum

Name
Type
Description

modifier

modifier to get team of

Returns team of the modifier.

GetAttributes

circle-info

Deprecated.

Modifier.GetAttributes(modifier): integer

Name
Type
Description

modifier

modifier to get attributes of

Returns the attributes of the modifier.

IsAura

circle-info

Deprecated.

Modifier.IsAura(modifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if the modifier is an aura.

IsAuraActiveOnDeath

circle-info

Deprecated.

Modifier.IsAuraActiveOnDeath(modifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if the modifier aura active on death.

GetMarkedForDeletion

circle-info

Deprecated.

Modifier.GetMarkedForDeletion(modifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if the modifier is marked for deletion.

GetAuraIsHeal

circle-info

Deprecated.

Modifier.GetAuraIsHeal(modifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if aura is heal.

GetProvidedByAura

Modifier.GetProvidedByAura(modifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if modifier is provided by an aura.

GetPreviousTick

Modifier.GetPreviousTick(modifier): 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

circle-info

Deprecated.

Modifier.GetThinkInterval(modifier): number

Name
Type
Description

modifier

modifier to get think interval of

Returns the modifier's think interval.

GetThinkTimeAccumulator

circle-info

Deprecated.

`Modifier.GetThinkTimeAccumulator(modifier):` **`number`**

Name
Type
Description

modifier

modifier to get think time accumulator of

Return the modifier's think interval time accumulator.

IsCurrentlyInAuraRange

Modifier.IsCurrentlyInAuraRange(modifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if is in aura range.

GetAbility

Modifier.GetAbility(modifier): CAbility

Name
Type
Description

modifier

modifier to get ability of

Returns the modifier's ability.

GetAuraOwner

Modifier.GetAuraOwner(modifier): CEntity | nil

Name
Type
Description

modifier

modifier

Returns the owner of aura

GetParent

Modifier.GetParent(modifier): CEntity | nil

Name
Type
Description

modifier

modifier

Returns the parent of modifier

GetCaster

Modifier.GetCaster(modifier): CEntity | nil

Name
Type
Description

modifier

modifier

Returns caster of modifier

GetState

Modifier.GetState(modifier): number, number

Name
Type
Description

modifier

modifier to get state of

Returns the modifier state masks. See the example.

Example

IsDebuff

Modifier.IsDebuff(modifier): boolean

Name
Type
Description

modifier

modifier to check

Returns true if the modifier is a debuff.

GetField

Modifier.GetField(modifier, fieldName, [dbgPrint]): any

Name
Type
Description

modifier

modifier to get field from

fieldName

string

field name

dbgPrint [?]

boolean

print possible errors (default: false)

Returns value of the field.

Last updated