Formula

CommonFun.calcBuff_8570

function CommonFun.calcBuff_8570(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Num = targetUser:GetBuffLayer(138361_ELECTRIC_CHARGE_COUNT_:MAX_STACK_5)
  local A = -0.5 * Num * damage
  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
    A = -1
  end
  if targetUser:DamageAlways1() then
    A = -1
  end
  if A < -2100000000 then
    A = -2100000000
  end
  return A
end