Formula

CommonFun.calcBuff_103

formula.lua
1function CommonFun.calcBuff_103(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local Num1 = srcUser:GetRunePoint(52100_AESIR_CHANGE_THE_EFFECT_OF_LEX_DIVINA_INTO_EXTENDING_CAST_TIME_OF_ALL_ENEMY_S_SKILLS_FOR_EACH_POINT_IS_BUILT_CAST_TIME_100_FIXED_CAST_TIME_0_5_SECONDS_THIS_EFFECT_LASTS_10_SECONDS)
6  local SilenceAtk = srcUser:GetProperty("SilenceAtk")
7  local SilenceDef2 = targetUser:GetProperty("SilenceDef")
8  local SlienceDam = 1 + SilenceAtk - SilenceDef2
9  if SlienceDam <= 0 then
10    SlienceDam = 0
11  end
12  local StateAtk = srcUser:GetProperty("StateAtk")
13  local StateDef2 = targetUser:GetProperty("StateDef")
14  local StateDam = (1 + StateAtk) * (1 - StateDef2)
15  if StateDam <= 0 then
16    StateDam = 0
17  end
18  local A = 100 * SlienceDam * StateDam * CommonFun.calcAttrSilenceRate(srcUser, targetUser)
19  if 0 < Num1 then
20    A = 0
21  end
22  if A <= 0 then
23    return 0
24  end
25  return A
26end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_103

commonfun-calcbuff_103

Nodes

0

Edges

0

Related Nodes

Select at least one node type.