summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-22 14:09:01 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-22 14:09:01 +0000
commit7740a68642e66bb59368042d109262332d849298 (patch)
treeeb9cb5b75c38753e9956604e70f8281695e428e0 /src/map/script.c
parent68b7108daded2d1b35ae383e6acd9d251112e22d (diff)
downloadhercules-7740a68642e66bb59368042d109262332d849298.tar.gz
hercules-7740a68642e66bb59368042d109262332d849298.tar.bz2
hercules-7740a68642e66bb59368042d109262332d849298.tar.xz
hercules-7740a68642e66bb59368042d109262332d849298.zip
- getnameditem will now also work on stackable items
- Corrected battle_calc_weapon_attack so that all skills ignore your left-hand weapon, and that the Katar's double-attack damage bonus for the offhand damage applies ONLY on normal attacks. - Fixed Resurrect Homunculus's % to 20*lv% git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8426 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 7d199721d..79cdb517a 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5276,9 +5276,8 @@ int buildin_getnameditem(struct script_state *st)
}else
nameid = conv_num(st,data);
- if(!itemdb_exists(nameid) || itemdb_isstackable(nameid))
- { //We don't allow non-equipable/stackable items to be named
- //to avoid any qty exploits that could happen because of it.
+ if(!itemdb_exists(nameid)/* || itemdb_isstackable(nameid)*/)
+ { //Even though named stackable items "could" be risky, they are required for certain quests.
push_val(st->stack,C_INT,0);
return 0;
}