Bỏ qua

Hàm công thức Buff

Các hàm này tính toán giá trị buff cụ thể. Khả dụng từ phiên bản S14 trở đi.

GetFormulaSwordPowerMagicDamage(lpObj)

Tính sát thương phép thuật bổ sung từ buff Sword Power.

local dmg = GetFormulaSwordPowerMagicDamage(player)

GetFormulaSwordPowerAttackSpeed(lpObj)

Tính tốc độ tấn công bổ sung từ Sword Power.

local speed = GetFormulaSwordPowerAttackSpeed(player)

GetFormulaSwordPowerDefenseRate(lpObj)

Tính tỷ lệ phòng thủ bổ sung từ Sword Power.

local defRate = GetFormulaSwordPowerDefenseRate(player)

GetFormulaSwordPowerLifeReduction(lpObj)

Tính lượng HP tiêu hao của buff Sword Power.

local hpCost = GetFormulaSwordPowerLifeReduction(player)

GetFormulaDarknessCurseDamage(lpObj)

Tính sát thương nguyền rủa từ buff Darkness.

local curseDmg = GetFormulaDarknessCurseDamage(player)

GetFormulaDarknessDefense(lpObj)

Tính phòng thủ bổ sung từ Darkness.

local def = GetFormulaDarknessDefense(player)

GetFormulaDarknessLifeReduction(lpObj)

Tính lượng HP tiêu hao của buff Darkness.

local hpCost = GetFormulaDarknessLifeReduction(player)

GetFormulaBatFlockDOTDamage(lpObj)

Tính giá trị sát thương theo thời gian cho kỹ năng Bat Flock.

local dot = GetFormulaBatFlockDOTDamage(player)