summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-04-09 19:34:29 -0300
committerpanikon <panikon@zoho.com>2014-04-09 19:34:29 -0300
commit4147d9f7966e7ebd94811248527cc45af1e54941 (patch)
treec1269d484db9af4318f84041f655fa6fcb9a0d16 /src/map/pc.c
parent47680829048288376aec23102b9660f36f4463ee (diff)
downloadhercules-4147d9f7966e7ebd94811248527cc45af1e54941.tar.gz
hercules-4147d9f7966e7ebd94811248527cc45af1e54941.tar.bz2
hercules-4147d9f7966e7ebd94811248527cc45af1e54941.tar.xz
hercules-4147d9f7966e7ebd94811248527cc45af1e54941.zip
Fixed issue: 7725
http://hercules.ws/board/tracker/issue-7725-disguise-hide-skill-bug/ Fixed issue: 8027 http://hercules.ws/board/tracker/issue-8027-when-the-storage-is-open-you-can-use-self-skills/ Fixed issue where @at showed it failed when it succeeded
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 42b79ed92..848238ed2 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1758,6 +1758,13 @@ int pc_disguise(struct map_session_data *sd, int class_) {
status->set_viewdata(&sd->bl, class_);
clif->changeoption(&sd->bl);
+ // We need to update the client so it knows that a costume is being used
+ if( sd->sc.option&OPTION_COSTUME ) {
+ clif->changelook(&sd->bl,LOOK_BASE,sd->vd.class_);
+ clif->changelook(&sd->bl,LOOK_WEAPON,0);
+ clif->changelook(&sd->bl,LOOK_SHIELD,0);
+ clif->changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color);
+ }
if (sd->bl.prev != NULL) {
clif->spawn(&sd->bl);