Formula

CommonFun.calcBuff_7760

function CommonFun.calcBuff_7760(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local isSun = 0
  local isMoon = 0
  if srcUser:GetSunMark(targetUser) then
    isSun = 1
  end
  if srcUser:GetMoonMark(targetUser) then
    isMoon = 1
  end
  local A = isSun * a + isMoon * b
  return A
end