diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-09 21:10:17 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-09 21:10:17 +0000 |
commit | 4b309487832a6dbf45b6dac100399a9968916e4a (patch) | |
tree | 1bdb15473c16b9c790534f086f853b66cef8cc4e /src/map/clif.c | |
parent | a2edaef3d051fbb3d3b642cf5b01a3fbfc3cfa18 (diff) | |
download | hercules-4b309487832a6dbf45b6dac100399a9968916e4a.tar.gz hercules-4b309487832a6dbf45b6dac100399a9968916e4a.tar.bz2 hercules-4b309487832a6dbf45b6dac100399a9968916e4a.tar.xz hercules-4b309487832a6dbf45b6dac100399a9968916e4a.zip |
- Fixed skill usage being blocked if you use Weapon Refine and there is nothing available to upgrade.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9839 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index c8c021233..535a215eb 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5372,9 +5372,10 @@ int clif_item_refine_list(struct map_session_data *sd) } WFIFOW(fd,2)=c*13+4; WFIFOSET(fd,WFIFOW(fd,2)); - sd->menuskill_id = WS_WEAPONREFINE; - sd->menuskill_lv = skilllv; - + if (c > 0) { + sd->menuskill_id = WS_WEAPONREFINE; + sd->menuskill_lv = skilllv; + } return 0; } |