summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-08 01:16:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-08 01:16:56 +0000
commitbc8350f550226c4d7d848ea9737f46c4a5d61575 (patch)
tree09945b6d680864c4fec46b63ab8a4a5844c45fd0 /src/map/skill.c
parent8630d5ddbb8c544096ebd7e6f023c23e9d7e407d (diff)
downloadhercules-bc8350f550226c4d7d848ea9737f46c4a5d61575.tar.gz
hercules-bc8350f550226c4d7d848ea9737f46c4a5d61575.tar.bz2
hercules-bc8350f550226c4d7d848ea9737f46c4a5d61575.tar.xz
hercules-bc8350f550226c4d7d848ea9737f46c4a5d61575.zip
- 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
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
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;