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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 7ed9c5245..e8515b553 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5805,6 +5805,8 @@ int pc_setoption(struct map_session_data *sd,int type)
new_look = sd->vd.class_;
}
if (new_look) {
+ //Stop attacking on new view change (to prevent wedding/santa attacks.
+ pc_stop_attack(sd);
clif_changelook(&sd->bl,LOOK_BASE,new_look);
if (sd->vd.cloth_color)
clif_changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color);