summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2014-08-08 19:58:25 +0200
committerMichieru <Michieru@users.noreply.github.com>2014-08-08 19:58:25 +0200
commit9395ed3cfe3129111459ceec00d92f5706a27e1a (patch)
tree4c6ce9bda49ef84ec323a07153b28cce5a7936f1 /src/map/pc.c
parent73089923e91b88bb2470cd7abab8616b5e68d374 (diff)
downloadhercules-9395ed3cfe3129111459ceec00d92f5706a27e1a.tar.gz
hercules-9395ed3cfe3129111459ceec00d92f5706a27e1a.tar.bz2
hercules-9395ed3cfe3129111459ceec00d92f5706a27e1a.tar.xz
hercules-9395ed3cfe3129111459ceec00d92f5706a27e1a.zip
- Fix during Severe Rainstorm you can't swith equipment (bug:8193)
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 6c8e3403d..936dd0d36 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -8776,7 +8776,7 @@ int pc_equipitem(struct map_session_data *sd,int n,int req_pos)
return 0;
}
- if (sd->sc.data[SC_BERSERK])
+ if (sd->sc.data[SC_BERSERK] || sd->sc.data[SC_NO_SWITCH_EQUIP])
{
clif->equipitemack(sd,n,0,EIA_FAIL); // fail
return 0;
@@ -8980,7 +8980,7 @@ int pc_unequipitem(struct map_session_data *sd,int n,int flag) {
}
// if player is berserk then cannot unequip
- if (!(flag & 2) && sd->sc.count && (sd->sc.data[SC_BERSERK]))
+ if (!(flag & 2) && sd->sc.count && (sd->sc.data[SC_BERSERK]) || sd->sc.data[SC_NO_SWITCH_EQUIP])
{
clif->unequipitemack(sd,n,0,UIA_FAIL);
return 0;