summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-18 02:41:10 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-18 02:41:10 +0000
commit3117bb0eac0745a30b618099899bffd1f58badbd (patch)
tree744c31cc53ed6ae1bfa5774a1772c2a16be2769c /src/map/atcommand.c
parent4a2c67dc47ffc7c33eea340ea96e3d0ba57e359e (diff)
downloadhercules-3117bb0eac0745a30b618099899bffd1f58badbd.tar.gz
hercules-3117bb0eac0745a30b618099899bffd1f58badbd.tar.bz2
hercules-3117bb0eac0745a30b618099899bffd1f58badbd.tar.xz
hercules-3117bb0eac0745a30b618099899bffd1f58badbd.zip
- Updated mob_db.sql to current mob_db.txt data.
- Some cleaning on chrif.c - The char-server will allow off-line character saves when said char is tagged for final-save (this is the scenario when the char-map reconnect). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7722 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 4f1fb2a68..9a333892b 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -2569,10 +2569,9 @@ int atcommand_item(
item_id = item_data->nameid;
get_count = number;
//Check if it's stackable.
- if (item_data->type == 4 || item_data->type == 5 ||
- item_data->type == 7 || item_data->type == 8) {
+ if (itemdb_isstackable2(item_data))
get_count = 1;
- }
+
for (i = 0; i < number; i += get_count) {
// if not pet egg
if (!pet_create_egg(sd, item_id)) {