Formula

CommonFun.calcBuff_3710

formula.lua
1function CommonFun.calcBuff_3710(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local skilllv_1 = srcUser:GetLernedSkillLevel(1325_ASSASSIN:WARM_BREEZE)
6  local MaxHp = targetUser:GetProperty("MaxHp")
7  local skilllv_2 = srcUser:GetLernedSkillLevel(1333_ASSASSIN:SUMMON_ELEMENTAL)
8  local BeHealEncPer2 = targetUser:GetProperty("BeHealEncPer")
9  local HealEncPer = srcUser:GetProperty("HealEncPer")
10  local Element = 0
11  local ElementNpc = srcUser:getCurElementElfID()
12  if ElementNpc == 580010 then
13    Element = 0.001 * skilllv_2
14  end
15  local mapid, maptype = srcUser:GetMapInfo()
16  if (maptype == PVP_MAPS) and srcUser:HasBuffID(20820100_WARM_BREEZE_PVP_EFFECT_NOT_REDUCED_:MAX_STACK_0) == false then
17    MaxHp = MaxHp * 0.25
18  end
19  local GemValue = srcUser:GetGemValue(82091_WARM_BREEZE_RECOVERY_EFFECT_PERCENTAGE)
20  local GemDam = 1 + GemValue / 100000
21  local A = MaxHp * (skilllv_1 * 0.004 + 0.008 + Element) * (1 + BeHealEncPer2) * (1 + HealEncPer) * GemDam
22  return A
23end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_3710

commonfun-calcbuff_3710

Nodes

0

Edges

0

Related Nodes

Select at least one node type.