summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-10 22:55:32 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-10 22:55:32 +0000
commit6ecd8a7af58b92446a6984fbdfc2429562232f8c (patch)
tree923dd2db9e2e99379869e32355b502450a8eb811 /src/map/clif.c
parentd8943a847d245d984de1bc580cb559339564e102 (diff)
downloadhercules-6ecd8a7af58b92446a6984fbdfc2429562232f8c.tar.gz
hercules-6ecd8a7af58b92446a6984fbdfc2429562232f8c.tar.bz2
hercules-6ecd8a7af58b92446a6984fbdfc2429562232f8c.tar.xz
hercules-6ecd8a7af58b92446a6984fbdfc2429562232f8c.zip
Fixed bug with create new poison (GCROSS) not working properly, bugreport:5311
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15562 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index ba7d346b8..7f706742a 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10804,8 +10804,15 @@ void clif_parse_RequestMemo(int fd,struct map_session_data *sd)
/// 018e <name id>.W { <material id>.W }*3
void clif_parse_ProduceMix(int fd,struct map_session_data *sd)
{
- if( sd->menuskill_id != -1 && sd->menuskill_id != AM_PHARMACY && sd->menuskill_id != RK_RUNEMASTERY )
- return;
+ switch( sd->menuskill_id ) {
+ case -1:
+ case AM_PHARMACY:
+ case RK_RUNEMASTERY:
+ case GC_CREATENEWPOISON:
+ break;
+ default:
+ return;
+ }
if (pc_istrading(sd)) {
//Make it fail to avoid shop exploits where you sell something different than you see.
clif_skill_fail(sd,sd->ud.skillid,USESKILL_FAIL_LEVEL,0);