summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-09 15:23:25 +0000
committerrud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec>2013-01-09 15:23:25 +0000
commitca217557a8f647f06e11a1d89592bc0b1c4d1b3e (patch)
tree3b1e7cd42aeb1227e90088a5776e6a6c59881a62 /src/map/clif.c
parent97d488e67801d315730cbe20eef9e0f70e56c0a6 (diff)
downloadhercules-ca217557a8f647f06e11a1d89592bc0b1c4d1b3e.tar.gz
hercules-ca217557a8f647f06e11a1d89592bc0b1c4d1b3e.tar.bz2
hercules-ca217557a8f647f06e11a1d89592bc0b1c4d1b3e.tar.xz
hercules-ca217557a8f647f06e11a1d89592bc0b1c4d1b3e.zip
Fixed bugreport:7105 where pierce defense must ignore def and add (def/2) as additional ATK damage.
Fixed bugreport:7148 where r17072 broke the ability of smiths to forge weapons. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17089 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index cc4100487..06c74a5f8 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5239,7 +5239,7 @@ void clif_skill_estimation(struct map_session_data *sd,struct block_list *dst)
/// 018d <packet len>.W { <name id>.W { <material id>.W }*3 }*
/// material id:
/// unused by the client
-void clif_skill_produce_mix_list(struct map_session_data *sd, uint16 skill_id , int trigger)
+void clif_skill_produce_mix_list(struct map_session_data *sd, int skill_id , int trigger)
{
int i,c,view,fd;
nullpo_retv(sd);
@@ -5255,7 +5255,7 @@ void clif_skill_produce_mix_list(struct map_session_data *sd, uint16 skill_id ,
for(i=0,c=0;i<MAX_SKILL_PRODUCE_DB;i++){
if( skill_can_produce_mix(sd,skill_produce_db[i].nameid, trigger, 1) &&
- ( skill_id > 0 && skill_produce_db[i].req_skill == skill_id )
+ ( skill_id > 0 && skill_produce_db[i].req_skill == skill_id || skill_id < 0 )
){
if((view = itemdb_viewid(skill_produce_db[i].nameid)) > 0)
WFIFOW(fd,c*8+ 4)= view;