Formula

CommonFun.calcBuff_154

formula.lua
1function CommonFun.calcBuff_154(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local PoisonAtk = srcUser:GetProperty("PoisonAtk")
6  local PoisonDef2 = targetUser:GetProperty("PoisonDef")
7  local PoisonDam = 1 + PoisonAtk - PoisonDef2
8  local Profession = srcUser:GetProfressionID()
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  if Profession == 31_THIEF or Profession == 32_ASSASSIN or Profession == 33_ASSASSIN_CROSS or Profession == 34_GUILLOTINE_CROSS or Profession == 35_BLADE_SOUL or Profession == 785_THE_NAMELESS or Profession == 805_BELL_CRANEL then
19    b = 12
20  end
21  local A = (lv * a + b) * PoisonDam * StateDam * CommonFun.calcAttrPoisonRate(srcUser, targetUser)
22  if srcUser:HasBuffID(140080_PURE_SIN_:MAX_STACK_0) then
23    A = 0
24  end
25  if A <= 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_154

commonfun-calcbuff_154

Nodes

0

Edges

0

Related Nodes

Select at least one node type.