Enchantment
Represents an enchantment on a player
Fields:
CasterId number
The id of the object who cast this enchantment (player / equipment / etc)
Category SpellCategory
The category of this enchantment
ClientReceivedAt DateTime
The datetime that the client recieved this enchantment from the server.
DegradeLimit number
?
DegradeModifier number
?
Duration number
The total duration in seconds this enchantment should last for
Effect SpellFlags
The spell flags for this enchantment
ExpiresAt DateTime
The datetime this enchantment will expire. All times are in UTC. Formula is: (Duration 0) ? DateTime.MaxValue : ClientReceivedAt + TimeSpan.FromSeconds(Duration) - TimeSpan.FromSeconds(StartTime)
Flags EnchantmentFlags
Enchantment flags
HasSpellSetId boolean
Tru if this enchantment has a spell set associated with it
LastTimeDegraded number
?
Layer number
Layer of this enchantment. Higher layer values take priority.
LayeredId LayeredSpellId
The full layered id of this enchantment
Power number
The spell power / difficulty of this enchantment spell
SpellId number
Spell id of this enchantment
SpellSetId number
The spell set id this enchantment comes from. Only valid if HasSpellSetId is true.
StartTime number
The time in seconds that the enchantment has been active before we heard about it from the server.
StatKey number
The stat key this enchantment affects. Could be of type AttributeID, VitalID, or SkillID depending on Flags
StatValue number
The stat value modifier of this enchantment
Methods:
GetPropertyKeys() : string[]
Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts
ToString() : string
Returns a string that represents the current object.