summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-27 09:36:44 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-27 09:36:44 +0000
commit2b36c1771884ccfa13e1df460fb7f6c6c5a04d12 (patch)
tree729af49c9657425555a8ec3cd59c492f59c09340 /src/map/skill.c
parentb9e21d0eb2447cd04961c0ad6ef7e9984b39c1f2 (diff)
downloadhercules-2b36c1771884ccfa13e1df460fb7f6c6c5a04d12.tar.gz
hercules-2b36c1771884ccfa13e1df460fb7f6c6c5a04d12.tar.bz2
hercules-2b36c1771884ccfa13e1df460fb7f6c6c5a04d12.tar.xz
hercules-2b36c1771884ccfa13e1df460fb7f6c6c5a04d12.zip
* Fixed skill_can_produce_mix not checking, whether or not the produced goods can actually be stored (bugreport:4674).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14633 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 3c4cbcd21..6b63c2b83 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -10750,6 +10750,11 @@ int skill_can_produce_mix (struct map_session_data *sd, int nameid, int trigger,
if( i >= MAX_SKILL_PRODUCE_DB )
return 0;
+ if( pc_checkadditem(sd, nameid, qty) == ADDITEM_OVERAMOUNT )
+ {// cannot carry the produced stuff
+ return 0;
+ }
+
if(trigger>=0){
if(trigger>20) { // Non-weapon, non-food item (itemlv must match)
if(skill_produce_db[i].itemlv!=trigger)