浏览代码

Fixed some issues with refine UI (#6106)

Fixes #6103

Thanks to @Everade
Lemongrass3110 3 年之前
父节点
当前提交
a7bbbb9379
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/map/clif.cpp

+ 3 - 1
src/map/clif.cpp

@@ -21950,10 +21950,11 @@ void clif_parse_refineui_refine( int fd, struct map_session_data* sd ){
 		// Blacksmith blessings were used to prevent breaking and downgrading
 		if( blacksmith_amount > 0 ){
 			clif_refine( fd, 3, index, item->refine );
+			clif_refineui_info( sd, index );
 		// Delete the item if it is breakable
 		}else if( cost->breaking_rate > 0 && ( rnd() % 10000 ) < cost->breaking_rate ){
 			clif_refine( fd, 1, index, item->refine );
-			pc_delitem( sd, index, 1, 0, 0, LOG_TYPE_CONSUME );
+			pc_delitem( sd, index, 1, 0, 2, LOG_TYPE_CONSUME );
 		// Downgrade the item if necessary
 		}else if( cost->downgrade_amount > 0 ){
 			item->refine = cap_value( item->refine - cost->downgrade_amount, 0, MAX_REFINE );
@@ -21962,6 +21963,7 @@ void clif_parse_refineui_refine( int fd, struct map_session_data* sd ){
 		// Only show failure, but dont do anything
 		}else{
 			clif_refine( fd, 3, index, item->refine );
+			clif_refineui_info( sd, index );
 		}
 
 		clif_misceffect( &sd->bl, 2 );