Formula

CommonFun.calcBuff_7040

function CommonFun.calcBuff_7040(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Def = srcUser:GetProperty("Def")
  local Vit = srcUser:GetProperty("Vit")
  local DefPer = targetUser:GetProperty("DefPer")
  local A = math.floor(Def / 2)
  if srcUser:HasBuffID(81001330_TAO_GUNKA_CARD_STORAGE_:MAX_STACK_0) then
    A = math.floor(Def / 4)
  end
  return -A
end