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 CommonFun.GetSunMark(srcUser, targetUser) then
    isSun = 1
  end
  if CommonFun.GetMoonMark(srcUser, targetUser) then
    isMoon = 1
  end
  local A = isSun * a + isMoon * b
  return A
end