diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-13 15:49:49 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-03-13 15:49:49 +0000 |
commit | aca2d8434c6aba5250c346fa6ad668f43ca763d2 (patch) | |
tree | 4b13c1a546cea4963e2c848505b083e06e506114 /src/map/pc.c | |
parent | 11d86b0d40e6e30b7ac138f17947a34ac841c3ee (diff) | |
download | hercules-aca2d8434c6aba5250c346fa6ad668f43ca763d2.tar.gz hercules-aca2d8434c6aba5250c346fa6ad668f43ca763d2.tar.bz2 hercules-aca2d8434c6aba5250c346fa6ad668f43ca763d2.tar.xz hercules-aca2d8434c6aba5250c346fa6ad668f43ca763d2.zip |
- @pvpoff and @gvgoff will make everyone in the map stop auto-attacking now.
- when @killer is deactivated the issuer will stop attacking.
- when @killable is deactivated, everyone around the user who is attacking the issuer will stop.
- Cleaned up some the code for dispell. It no longer removes food boosts.
- Players will stop attacking when they change their look.
- Applied Alydis's fix to the mvp item logs logging mvp items even if the player couldn't get the item.
- Changed the default of debuff_on_logout to 1 since food items shouldn't dispell on logout.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9997 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 2 |
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); |