Skip to content

Buff Formula Functions

These compute specific buff values. Available from version S14 onwards.

GetFormulaSwordPowerMagicDamage(lpObj)

Calculates the magic damage bonus from the Sword Power buff.

local dmg = GetFormulaSwordPowerMagicDamage(player)

GetFormulaSwordPowerAttackSpeed(lpObj)

Calculates the attack speed bonus from Sword Power.

local speed = GetFormulaSwordPowerAttackSpeed(player)

GetFormulaSwordPowerDefenseRate(lpObj)

Calculates the defense rate bonus from Sword Power.

local defRate = GetFormulaSwordPowerDefenseRate(player)

GetFormulaSwordPowerLifeReduction(lpObj)

Calculates the HP cost of the Sword Power buff.

local hpCost = GetFormulaSwordPowerLifeReduction(player)

GetFormulaDarknessCurseDamage(lpObj)

Calculates curse damage from the Darkness buff.

local curseDmg = GetFormulaDarknessCurseDamage(player)

GetFormulaDarknessDefense(lpObj)

Calculates the defense bonus from Darkness.

local def = GetFormulaDarknessDefense(player)

GetFormulaDarknessLifeReduction(lpObj)

Calculates the HP cost of the Darkness buff.

local hpCost = GetFormulaDarknessLifeReduction(player)

GetFormulaBatFlockDOTDamage(lpObj)

Calculates the damage-over-time value for the Bat Flock skill.

local dot = GetFormulaBatFlockDOTDamage(player)