Formula

CommonFun.calcBuff_5039

function CommonFun.calcBuff_5039(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Hasbuff = 0
  if srcUser:HasBuffID(c) then
    Hasbuff = 1
  end
  local A = a + b * Hasbuff
  if targetUser:HasBuffID(160000_BOSS_IMMUNE_EFFECT_:MAX_STACK_0) then
    A = 0
  end
  if targetUser.boss == true or targetUser.mini == true then
    A = 0
  end
  return A
end