Formula

CommonFun.calcBuff_6860

function CommonFun.calcBuff_6860(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Str = srcUser:GetProperty("Str")
  local Int = srcUser:GetProperty("Int")
  local Dex = srcUser:GetProperty("Dex")
  local Agi = srcUser:GetProperty("Agi")
  local Vit = srcUser:GetProperty("Vit")
  local Luk = srcUser:GetProperty("Luk")
  local A = a
  local Num = 0
  if 159 <= Str then
    Num = Num + 1
  end
  if 159 <= Int then
    Num = Num + 1
  end
  if 159 <= Dex then
    Num = Num + 1
  end
  if 159 <= Agi then
    Num = Num + 1
  end
  if 159 <= Vit then
    Num = Num + 1
  end
  if 159 <= Luk then
    Num = Num + 1
  end
  if 3 <= Num then
    A = A + b
  end
  return A
end