Formula

CommonFun.calcBuff_5250

function CommonFun.calcBuff_5250(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Value = srcUser:GetGemValue(c)
  local A = lv * a + b + Value / 100000
  local Profession = targetUser:GetProfressionID()
  if Profession == 102_BARD or Profession == 103_CLOWN or Profession == 104_MINSTREL or Profession == 105_SOLAR_TROUVERE then
    A = A * 2
  end
  return A
end