Skip to main content

Class: EffectAddBeforeEvent

Contains information related to changes to an effect - like poison - being added to an entity.

Constructors

new EffectAddBeforeEvent()

private new EffectAddBeforeEvent(): EffectAddBeforeEvent

Returns

EffectAddBeforeEvent

Properties

cancel

cancel: boolean

Remarks

When set to true will cancel the event.


duration

duration: number

Remarks

Effect duration.


effectType

readonly effectType: string

Remarks

The type of the effect that is being added.


entity

readonly entity: Entity

Remarks

Entity that the effect is being added to.