Formula

CommonFun.calcBuff_1320

formula.lua
1function CommonFun.calcBuff_1320(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(123_KNIGHT:STUN)
6  local StunAtk = srcUser:GetProperty("StunAtk")
7  local StunDef2 = targetUser:GetProperty("StunDef")
8  local StunDam = 1 + StunAtk - StunDef2
9  if StunDam <= 0 then
10    StunDam = 0
11  end
12  local StateAtk = srcUser:GetProperty("StateAtk")
13  local StateDef2 = targetUser:GetProperty("StateDef")
14  local StateDam = 1 + StateAtk - StateDef2
15  if StateDam <= 0 then
16    StateDam = 0
17  end
18  local A = (skilllv_1 * a + b) * StunDam * StateDam * CommonFun.calcAttrDizzyTime(srcUser, targetUser)
19  if A <= 0 then
20    return 0
21  end
22  if skilllv_1 <= 0 then
23    return 0
24  end
25  return A
26end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_1320

commonfun-calcbuff_1320

Nodes

0

Edges

0

Related Nodes

Select at least one node type.