Formula

CommonFun.calcBuff_141

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

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_141

commonfun-calcbuff_141

Nodes

0

Edges

0

Related Nodes

Select at least one node type.