summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-11 18:04:54 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-11 18:04:54 +0000
commit960472a38a2d354c0828527b3684bd7d49bd421c (patch)
tree8f09c2075877bc297b2d4e3c08a1ad719f149551 /src/map/clif.c
parent2b3819b533ee287e694795d45695a17cb7bf2f10 (diff)
downloadhercules-960472a38a2d354c0828527b3684bd7d49bd421c.tar.gz
hercules-960472a38a2d354c0828527b3684bd7d49bd421c.tar.bz2
hercules-960472a38a2d354c0828527b3684bd7d49bd421c.tar.xz
hercules-960472a38a2d354c0828527b3684bd7d49bd421c.zip
Fixed bugreport:6456 repair scroll (#14587) is now fully functional, bug was due to the range being checked on pc_checkskill and it'd return 0 when the caster isn't a blacksmith class (or doesn't have repair weapon mastered), the skill level cast is now stored in (struct map_session_data)->menuskill_val2. special thanks to kyeme for his persistence
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16624 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 882f91975..6b18dc917 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5817,7 +5817,7 @@ void clif_item_identified(struct map_session_data *sd,int idx,int flag)
/// Presents a list of items that can be repaired (ZC_REPAIRITEMLIST).
/// 01fc <packet len>.W { <index>.W <name id>.W <refine>.B <card1>.W <card2>.W <card3>.W <card4>.W }*
-void clif_item_repair_list(struct map_session_data *sd,struct map_session_data *dstsd)
+void clif_item_repair_list(struct map_session_data *sd,struct map_session_data *dstsd, int lv)
{
int i,c;
int fd;
@@ -5844,6 +5844,7 @@ void clif_item_repair_list(struct map_session_data *sd,struct map_session_data *
WFIFOSET(fd,WFIFOW(fd,2));
sd->menuskill_id = BS_REPAIRWEAPON;
sd->menuskill_val = dstsd->bl.id;
+ sd->menuskill_val2 = lv;
}else
clif_skill_fail(sd,sd->ud.skillid,USESKILL_FAIL_LEVEL,0);
}