Formula

CommonFun.calcBuff_7043

function CommonFun.calcBuff_7043(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MDef = srcUser:GetProperty("MDef")
  local A = math.floor(MDef * 0.8)
  if srcUser:HasBuffID(81004200_TAO_GUNKA_CARD_:MAX_STACK_0) then
    A = math.floor(MDef * 0.4)
  end
  return -A
end