diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-15 19:33:27 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-15 19:33:27 +0000 |
commit | 4c5b1387b212850a38a3ac73eac4896c445323dc (patch) | |
tree | 5a2830527bf12d90222e91016ea157073dde7648 /src | |
parent | dbd7ea83d57367a8cfbb86516c957f11da883b28 (diff) | |
download | hercules-4c5b1387b212850a38a3ac73eac4896c445323dc.tar.gz hercules-4c5b1387b212850a38a3ac73eac4896c445323dc.tar.bz2 hercules-4c5b1387b212850a38a3ac73eac4896c445323dc.tar.xz hercules-4c5b1387b212850a38a3ac73eac4896c445323dc.zip |
* Fixed missing check in cooking, causing cooking kit requirement could be bypassed by sending 0x25b (CZ_REQ_MAKINGITEM) directly (bugreport:4642, since r13628).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14592 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/map/clif.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ad8e5782c..151937d98 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -10180,6 +10180,11 @@ void clif_parse_Cooking(int fd,struct map_session_data *sd) //int type = RFIFOW(fd,2); // '1' for cooking, but what do other values mean? int nameid = RFIFOW(fd,4); + if( sd->menuskill_id != AM_PHARMACY ) + { + 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,0,0); |