Formula

CommonFun.calcBuff_131

formula.lua
1function CommonFun.calcBuff_131(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(235_LORD_KNIGHT:HOLY_BOOSTER)
6  local Num1 = srcUser:GetRunePoint(51019_AESIR_SUCCESS_RATE_OF_THE_HOLY_BOOSTER_S_STUNNING_20)
7  local Num2 = srcUser:GetRunePoint(51020)
8  local RuneRate = (Num1 + Num2) * 20
9  local StunAtk = srcUser:GetProperty("StunAtk")
10  local StunDef2 = targetUser:GetProperty("StunDef")
11  local StunDam = 1 + StunAtk - StunDef2
12  if StunDam <= 0 then
13    StunDam = 0
14  end
15  local StateAtk = srcUser:GetProperty("StateAtk")
16  local StateDef2 = targetUser:GetProperty("StateDef")
17  local StateDam = 1 + StateAtk - StateDef2
18  if StateDam <= 0 then
19    StateDam = 0
20  end
21  local A = (skilllv_1 * a + b + RuneRate) * StunDam * StateDam * CommonFun.calcAttrDizzyRate(srcUser, targetUser)
22  if A <= 0 then
23    return 0
24  end
25  if skilllv_1 <= 0 then
26    return 0
27  end
28  return A
29end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_131

commonfun-calcbuff_131

Nodes

0

Edges

0

Related Nodes

Select at least one node type.