Formula

CommonFun.calcBuff_2240

formula.lua
1function CommonFun.calcBuff_2240(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local MaxHp = srcUser:GetProperty("MaxHp")
6  local Hp = srcUser:GetProperty("Hp")
7  local MaxSp = srcUser:GetProperty("MaxSp")
8  local Sp = srcUser:GetProperty("Sp")
9  local HpRatio = Hp / MaxHp
10  local SpRatio = Sp / MaxSp
11  if a >= HpRatio and srcUser:HasBuffID(80001440_ORC_LORD_HELM_CARD_DEPOSITE_:MAX_STACK_0) and srcUser:HasBuffID(51251_ORC_LORD_HELM_CARD_REFLECT_:MAX_STACK_0) then
12    return 100
13  else
14    return 0
15  end
16end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_2240

commonfun-calcbuff_2240

Nodes

0

Edges

0

Related Nodes

Select at least one node type.