Formula

CommonFun.calcBuff_5960

function CommonFun.calcBuff_5960(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Sp = srcUser:GetProperty("Sp")
  if b == 1 then
    local Opening = srcUser:GetSkillOptByOption(17)
    if Opening == 0 then
      return -Sp * a
    end
    return 0
  end
  local A = -Sp * a
  return A
end