From 16971ee6d8ac40b4e696ef48ce3cbd23decf3f95 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 23 May 2023 11:06:39 +0800 Subject: [PATCH] 1 --- server/gameserver/human.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 5b460369..8694de75 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -2772,7 +2772,13 @@ void Human::ProcAddItemDto(AddItemDTO& dto) break; case EQUIP_TYPE_GEMSTONE: { - ProcYellowStoneItem(dto); + if (dto.item_meta->equip_subtype() == GEMSTONE_SUB_EQUIP_ENERGY) { + ProcYellowStoneItem(dto); + } else if (dto.item_meta->equip_subtype() == GEMSTONE_SUB_EQUIP_SKILL) { + ProcBlueStoneItem(dto); + } else if (dto.item_meta->equip_subtype() == GEMSTONE_SUB_EQUIP_SHIELD) { + ProcPurpleStoneItem(dto); + } } break; case EQUIP_TYPE_LOVE: