From bc8350f550226c4d7d848ea9737f46c4a5d61575 Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 8 Aug 2006 01:16:56 +0000 Subject: - Changed define EQP_WEAPON to specify only the right-hand weapon, added define EQP_ARMS to specify both arm-slots. - Some minor code cleanups to take account for the above, fixed Strip shield/weapon removing both. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8177 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/skill.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/skill.c') diff --git a/src/map/skill.c b/src/map/skill.c index a3c77829e..5eaadd6bd 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1664,8 +1664,8 @@ int skill_break_equip (struct block_list *bl, unsigned short where, int rate, in case EQI_HAND_R: //Left/Right hands case EQI_HAND_L: flag = ( - (where&EQP_WEAPON && sd->inventory_data[j]->type == 4) || - (where&EQP_SHIELD && sd->inventory_data[j]->type == 5)); + (where&EQP_WEAPON && sd->inventory_data[j]->type == IT_WEAPON) || + (where&EQP_SHIELD && sd->inventory_data[j]->type == IT_ARMOR)); break; default: continue; -- cgit v1.2.3-60-g2f50