summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index bc087fbb3..6078f1c0c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1,4 +1,4 @@
-// $Id: skill.c,v 1.8 2004/11/24 10:51:28 Celestia Exp $
+// $Id: skill.c,v 1.8 2004/11/25 4:02:35 PM Celestia Exp $
/* スキル?係 */
#include <stdio.h>
@@ -3708,29 +3708,14 @@ int skill_castend_nodamage_id( struct block_list *src, struct block_list *bl,int
break;
case BS_REPAIRWEAPON: /* 武器修理 */
- if(sd) { //Temporary Weapon Repair code [DracoRPG]
+ if(sd) {
//動作しないのでとりあえずコメントアウト
-// clif_item_repair_list(sd);
- int i,r=0;
if (pc_search_inventory(sd, 999) <= 0 ) {
clif_skill_fail(sd,sd->skillid,0,0);
map_freeblock_unlock();
return 1;
}
- for(i=0; i<MAX_INVENTORY; i++) {
- if(sd->status.inventory[i].attribute == 1){
- sd->status.inventory[i].attribute = 0;
- pc_delitem(sd, pc_search_inventory(sd, 999), 1, 0);
- clif_equiplist(sd);
- clif_produceeffect(sd, 0, sd->status.inventory[i].nameid);
- clif_misceffect(&sd->bl, 3);
- clif_displaymessage(sd->fd,"Item has been repaired.");
- r++;
- break;
- }
- }
- if(!r)
- clif_skill_fail(sd,sd->skillid,0,0);
+ clif_item_repair_list(sd);
}
break;