# LuaEffectBuilder

# Description

Allows to build status effects that can be inflicted in battles

# Methods

# OnReceiveDamage(function)

Is called when the player with the status effect receives damage.

LuaEffectBuilder

# OnDealDamage(function)

Is called when the player with the status effect deals damage.

LuaEffectBuilder

# OnTargetWithSpell(function)

Is called when the player with the status effect targets someone with any spell.

LuaEffectBuilder

# OnTargetedBySpell(function)

Is called when the player with the status effect is targeted by someone with any spell.

LuaEffectBuilder

# OnCalculateStats(function)

Is called when the stats of the player are calculated. This might be called frequently.

LuaEffectBuilder

# OnNextTurn(function)

Is called when next turn starts

LuaEffectBuilder

# OnTryCleanse(function)

Is called when the theres an attempt at cleansing the status effect

LuaEffectBuilder

# OnTurnEnd(function)

Is called when the current turn ends

LuaEffectBuilder

# Build()

Builds the effect to a useable format

IStatusEffect