Formula

CommonFun.calcAttrPoisonTime

formula.lua
1function CommonFun.calcAttrPoisonTime(srcUser, targetUser)
2  local Luk = srcUser:GetProperty("Luk")
3  local Vit = targetUser:GetProperty("Vit")
4  local StateTimeAtk = srcUser:GetProperty("StateTimeAtk")
5  local StateTimeDef2 = targetUser:GetProperty("StateTimeDef")
6  local A = math.min(0.8, Luk * 0.2 / 100)
7  local B = math.min(1, Vit * 0.4 / 100)
8  local Time = 1 + A - B + StateTimeAtk - StateTimeDef2
9  if Time <= 0 then
10    Time = 0
11  end
12  return Time
13end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcAttrPoisonTime

commonfun-calcattrpoisontime

Nodes

0

Edges

0

Related Nodes

Select at least one node type.