Formula

CommonFun.calcBuff_3640

formula.lua
1function CommonFun.calcBuff_3640(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local BlindAtk = srcUser:GetProperty("BlindAtk")
6  local BlindDef2 = targetUser:GetProperty("BlindDef")
7  local BlindDam = 1 + BlindAtk - BlindDef2
8  if BlindDam <= 0 then
9    BlindDam = 0
10  end
11  local StateAtk = srcUser:GetProperty("StateAtk")
12  local StateDef2 = targetUser:GetProperty("StateDef")
13  local StateDam = (1 + StateAtk) * (1 - StateDef2)
14  if StateDam <= 0 then
15    StateDam = 0
16  end
17  local skilllv_1 = srcUser:GetLernedSkillLevel(103710_:DARK_FLAME)
18  local A = (skilllv_1 * a + b) * BlindDam * StateDam * CommonFun.calcAttrBurnRate(srcUser, targetUser)
19  if A <= 0 then
20    return 0
21  end
22  return A
23end
Formula Graph

Connected Archive Data

See which cards, equipment, headwears, buffs, and other archived records connect to this formula.

Loading graph filters

CommonFun.calcBuff_3640

commonfun-calcbuff_3640

Nodes

0

Edges

0

Related Nodes

Select at least one node type.