Formula

CommonFun.calcBuff_1301

formula.lua
1function CommonFun.calcBuff_1301(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local StunAtk = srcUser:GetProperty("StunAtk")
6  local StunDef2 = targetUser:GetProperty("StunDef")
7  local StunDam = 1 + StunAtk - StunDef2
8  if StunDam <= 0 then
9    StunDam = 0
10  end
11  local StateAtk = srcUser:GetProperty("StateAtk")
12  local StateDef2 = targetUser:GetProperty("StateDef")
13  local StateDam = 1 + StateAtk - StateDef2
14  if StateDam <= 0 then
15    StateDam = 0
16  end
17  local A = (lv * a + b) * StunDam * StateDam * CommonFun.calcAttrDizzyTime(srcUser, targetUser)
18  local Buff = srcUser:HasBuffID(80000220_SKELETON_CARD_DEPOSITE_:MAX_STACK_0)
19  if Buff == true then
20    A = (lv * a + b + 2) * StunDam * StateDam * CommonFun.calcAttrDizzyTime(srcUser, targetUser)
21  end
22  if A <= 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_1301

commonfun-calcbuff_1301

Nodes

0

Edges

0

Related Nodes

Select at least one node type.