diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-16 16:31:30 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-16 16:31:30 +0000 |
commit | 9b3a759edca28fa9445949aa0a3664d7dc8f6b2f (patch) | |
tree | 048521a0989fbea1662983dc2291d72688eb3e72 /src/map/atcommand.c | |
parent | b035b0610206daff6e94f9d88297438e0ab93261 (diff) | |
download | hercules-9b3a759edca28fa9445949aa0a3664d7dc8f6b2f.tar.gz hercules-9b3a759edca28fa9445949aa0a3664d7dc8f6b2f.tar.bz2 hercules-9b3a759edca28fa9445949aa0a3664d7dc8f6b2f.tar.xz hercules-9b3a759edca28fa9445949aa0a3664d7dc8f6b2f.zip |
- @produce now can make any kind of equipment
- Fixed a warning on the mob_ai
- Made HLIF_AVOID and HAMI_DEFENCE cause the status change on both caster and target.
- AM_REST shouldn't be checking for a range now (since it's a self skill)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8318 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 0a133884e..f87418c6b 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -3875,7 +3875,7 @@ int atcommand_produce( return -1;
}
item_id = item_data->nameid;
- if (itemdb_isequip2(item_data) && item_data->type == IT_WEAPON) {
+ if (itemdb_isequip2(item_data)) {
if (attribute < MIN_ATTRIBUTE || attribute > MAX_ATTRIBUTE)
attribute = ATTRIBUTE_NORMAL;
if (star < MIN_STAR || star > MAX_STAR)
@@ -3885,7 +3885,8 @@ int atcommand_produce( tmp_item.amount = 1;
tmp_item.identify = 1;
tmp_item.card[0] = CARD0_FORGE;
- tmp_item.card[1] = ((star * 5) << 8) + attribute;
+ tmp_item.card[1] = item_data->type==IT_WEAPON?
+ ((star*5) << 8) + attribute:0;
tmp_item.card[2] = GetWord(sd->char_id, 0);
tmp_item.card[3] = GetWord(sd->char_id, 1);
clif_produceeffect(sd, 0, item_id);
|