summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2015-12-14 22:08:04 +0200
committerHaru <haru@dotalux.com>2015-12-20 18:11:53 +0100
commit62bafa089bab20c641a48855a1ed6d9aa6c3aad4 (patch)
treebd0b704e4f5c3b2483ad2a9f561d2dd0984ee6c5 /src/map/pc.c
parent91a3b9831f06e1a7ccb478596e02d463917ba8d3 (diff)
downloadhercules-62bafa089bab20c641a48855a1ed6d9aa6c3aad4.tar.gz
hercules-62bafa089bab20c641a48855a1ed6d9aa6c3aad4.tar.bz2
hercules-62bafa089bab20c641a48855a1ed6d9aa6c3aad4.tar.xz
hercules-62bafa089bab20c641a48855a1ed6d9aa6c3aad4.zip
Costume and Shadow items are not equip-able anymore on older clients that doesn't support it.
Fixes #947 Closes #954 as merged Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 567348d20..43d320a80 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -928,6 +928,11 @@ int pc_isequip(struct map_session_data *sd,int n)
if(item == NULL)
return 0;
+#if PACKETVER <= 20100707
+ if (itemdb_is_shadowequip(item->equip) || itemdb_is_costumeequip(item->equip))
+ return 0;
+#endif
+
if(pc_has_permission(sd, PC_PERM_USE_ALL_EQUIPMENT))
return 1;