summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index de2e73ba5..c379e6460 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6590,6 +6590,14 @@ int pc_unequipitem(struct map_session_data *sd,int n,int flag)
sd->weapontype1 == 0 && sd->weapontype2 == 0)
skill_enchant_elemental_end(&sd->bl,-1);
+ if(sd->status.inventory[n].equip & EQP_ARMOR) {
+ // On Armor Change...
+ if( sd->sc.data[SC_BENEDICTIO] )
+ status_change_end(&sd->bl, SC_BENEDICTIO, -1);
+ if( sd->sc.data[SC_ARMOR_RESIST] )
+ status_change_end(&sd->bl, SC_ARMOR_RESIST, -1);
+ }
+
sd->status.inventory[n].equip=0;
if(flag&1) {