Formula

CommonFun.calcBuff_3530

formula.lua
1function CommonFun.calcBuff_3530(srcUser, targetUser, a, b, c, d, lv)
2  local MaxHp = srcUser:GetProperty("MaxHp")
3  local mapid, maptype = srcUser:GetMapInfo()
4  if srcUser == nil or targetUser == nil then
5    return 0
6  end
7  if maptype == PVP_MAPS then
8    MaxHp = MaxHp * 0.25
9  end
10  local A = MaxHp * a
11  if targetUser:GetNpcID() == 30043_YEAR or targetUser:GetNpcID() == 280303_WILDNESS_SPIRIT_BEAST or targetUser:GetNpcID() == 56008_GOMORA or targetUser:GetNpcID() == 56009_BALTAN or targetUser:GetNpcID() == 56010_GOLZA or targetUser:GetNpcID() == 56011_BEMSTAR or targetUser:GetNpcID() == 56012_ELEKING or targetUser:GetNpcID() == 56013_KING_JOE then
12    A = -1
13  end
14  if targetUser:DamageAlways1() then
15    A = -1
16  end
17  return A
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_3530

commonfun-calcbuff_3530

Nodes

0

Edges

0

Related Nodes

Select at least one node type.