Formula

CommonFun.calcBuff_2190

formula.lua
1function CommonFun.calcBuff_2190(srcUser, targetUser, a, b, c, d, lv, damage)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  if damage <= 1 then
6    return 1
7  end
8  local MaxHp = srcUser:GetProperty("MaxHp")
9  local Hp = srcUser:GetProperty("Hp")
10  local HpRatio = Hp / MaxHp
11  local Card1 = srcUser:GetEquipCardNum(7, 23006_GOBLIN_LEADER_CARD)
12  local Card2 = srcUser:GetEquipCardNum(7, 24627_GOBLIN_LEADER_STAR_CARD)
13  if CommonFun.IsInRate(50, srcUser:GetRandom()) and (srcUser:HasBuffID(80000770_GOBLIN_LEADER_CARD_DEPOSITE_:MAX_STACK_0) and 1 <= Card1 or srcUser:HasBuffID(81000970_GOBLIN_LEADER_CARD_DEPOSITE_:MAX_STACK_0) and 1 <= Card2) and HpRatio <= 0.3 then
14    return damage * 0.1
15  else
16    return damage * 0.05
17  end
18end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_2190

commonfun-calcbuff_21

Nodes

0

Edges

0

Related Nodes

Select at least one node type.