Formula

CommonFun.calcBuff_4900

function CommonFun.calcBuff_4900(srcUser, targetUser, a, b, c, d, lv)
  if srcUser == nil or targetUser == nil then
    return 0
  end
  local Ring1 = srcUser:GetEquipedID(7_WEAPON)
  local RefineLv1 = srcUser:GetEquipedRefineLv(7_WEAPON)
  local Ring2 = srcUser:GetEquipedID(2)
  local RefineLv2 = srcUser:GetEquipedRefineLv(2)
  local a = 0
  local b = 0
  if (Ring1 == 41255_OVERLORD_CRAB_BOW_1 or Ring1 == 141255_OVERLORD_CRAB_BOW_2) and 10 <= RefineLv1 then
    a = 0.05
  end
  local equipRing = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
  if (equipRing.id == 42097 or equipRing.id == 142097) and 10 <= equipRing.refinelv then
    b = 0.05
  end
  local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
  if (equipRingSD.id == 42097 or equipRingSD.id == 142097) and 10 <= equipRingSD.refinelv then
    b = 0.05
  end
  local A = a + b
  return A
end