Formula

CommonFun.calcBuff_151

formula.lua
1function CommonFun.calcBuff_151(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(191_KNIGHT:ENHANCED_ENCHANT_POISON)
6  local PoisonAtk = srcUser:GetProperty("PoisonAtk")
7  local PoisonDef2 = targetUser:GetProperty("PoisonDef")
8  local PoisonDam = 1 + PoisonAtk - PoisonDef2
9  if PoisonDam <= 0 then
10    PoisonDam = 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) * PoisonDam * StateDam * CommonFun.calcAttrPoisonTime(srcUser, targetUser)
19  if A <= 0 then
20    return 0
21  end
22  return A
23end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_151

commonfun-calcbuff_151

Nodes

0

Edges

0

Related Nodes

Select at least one node type.