summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-18 19:15:41 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-18 19:15:41 +0000
commitb5300be8f74ab64d90d71e20a11d2f0d5497c8bd (patch)
tree2a262c7bc75a45f63fc0c357a5f890225163c557 /src/map/pc.c
parent1873fa595be71ef3f98ada3decf43a3f13b12720 (diff)
downloadhercules-b5300be8f74ab64d90d71e20a11d2f0d5497c8bd.tar.gz
hercules-b5300be8f74ab64d90d71e20a11d2f0d5497c8bd.tar.bz2
hercules-b5300be8f74ab64d90d71e20a11d2f0d5497c8bd.tar.xz
hercules-b5300be8f74ab64d90d71e20a11d2f0d5497c8bd.zip
- When walking into a Guild Dungeon your pvp_points will be set to 5 so you have to die twice before being warped out.
- If jobchanging while disguised, the disguise will be removed, since it can't be kept and still calculate correctly the new job class to use. - Fuuma shurikens are now unbreakable code-wise (like all maces, books, etc) - Applied Meruru's patch to increase speed of easy path seeks. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9518 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index e6ae6c8af..8ffa54291 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -5538,7 +5538,11 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper)
pc_unequipitem(sd,sd->equip_index[i],2); // ?”õŠO‚µ
}
- //Change look
+ //Change look, if disguised, you need to undisguise
+ //to correctly calculate new job sprite without
+ if (sd->disguise)
+ pc_disguise(sd, 0);
+
status_set_viewdata(&sd->bl, job);
clif_changelook(&sd->bl,LOOK_BASE,sd->vd.class_); // move sprite update to prevent client crashes with incompatible equipment [Valaris]
if(sd->vd.cloth_color)