#
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.
function
(ReceiveDamageFunction)
#
OnDealDamage(function)
Is called when the player with the status effect deals damage.
function
(DealDamageFunction)
#
OnTargetWithSpell(function)
Is called when the player with the status effect targets someone with any spell.
function
(TargetWithSpellFunction)
#
OnTargetedBySpell(function)
Is called when the player with the status effect is targeted by someone with any spell.
function
(TargetedBySpellFunction)
#
OnCalculateStats(function)
Is called when the stats of the player are calculated. This might be called frequently.
function
(Stats)
#
OnNextTurn(function)
Is called when next turn starts
function
(NextTurnFunction)
#
OnTryCleanse(function)
Is called when the theres an attempt at cleansing the status effect
function
(TryCleanseFunction)
#
OnTurnEnd(function)
Is called when the current turn ends
function
(TurnEndFunction)
#
Build()
Builds the effect to a useable format