Formula

CommonFun.calcBuff_8340

function CommonFun.calcBuff_8340(srcUser, targetUser, a, b, c, d, lv, damage)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local MaxHp = srcUser:GetProperty("MaxHp")
  local mapid, maptype = srcUser:GetMapInfo()
  local A = math.min(math.floor(MaxHp / 5000) * 0.1 / 100, 0.15)
  return A
end