Formula

CommonFun.calcBuff_142

formula.lua
1function CommonFun.calcBuff_142(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(2053_RANGER:BURNING_PRISON)
6  local Master = srcUser:GetMasterUser()
7  local skilllv_2 = 0
8  if Master ~= nil then
9    skilllv_2 = Master:GetLernedSkillLevel(2053_RANGER:BURNING_PRISON)
10  end
11  local BlindAtk = srcUser:GetProperty("BlindAtk")
12  local BlindDef2 = targetUser:GetProperty("BlindDef")
13  local BlindDam = 1 + BlindAtk - BlindDef2
14  if BlindDam <= 0 then
15    BlindDam = 0
16  end
17  local StateAtk = srcUser:GetProperty("StateAtk")
18  local StateDef2 = targetUser:GetProperty("StateDef")
19  local StateDam = 1 + StateAtk - StateDef2
20  if StateDam <= 0 then
21    StateDam = 0
22  end
23  local A = ((skilllv_1 + skilllv_2) * a + b) * BlindDam * StateDam * CommonFun.calcAttrBurnRate(srcUser, targetUser)
24  if A <= 0 then
25    return 0
26  end
27  return A
28end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_142

commonfun-calcbuff_142

Nodes

0

Edges

0

Related Nodes

Select at least one node type.