diff options
author | shennetsind <ind@henn.et> | 2013-05-17 14:12:06 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-17 14:12:06 -0300 |
commit | 6666609abcfa09f09a7b24c2b7f23fe83acc6585 (patch) | |
tree | bec3a846c14fe9a63e86e6620fc0ca153f70b0ec /src/map/pc.c | |
parent | 346dd126a746335d8839b8066a90f368edd554be (diff) | |
download | hercules-6666609abcfa09f09a7b24c2b7f23fe83acc6585.tar.gz hercules-6666609abcfa09f09a7b24c2b7f23fe83acc6585.tar.bz2 hercules-6666609abcfa09f09a7b24c2b7f23fe83acc6585.tar.xz hercules-6666609abcfa09f09a7b24c2b7f23fe83acc6585.zip |
Fixed Look_Base not refreshing skill tree
special thanks to Beret~!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 0f221f298..644a296cf 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -7542,7 +7542,13 @@ int pc_changelook(struct map_session_data *sd,int type,int val) switch(type){ case LOOK_BASE: - sd->vd.class_ = val; + status_set_viewdata(&sd->bl, val); + clif->changelook(&sd->bl,LOOK_BASE,sd->vd.class_); + clif->changelook(&sd->bl,LOOK_WEAPON,sd->status.weapon); + if (sd->vd.cloth_color) + clif->changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color); + clif->skillinfoblock(sd); + return 0; break; case LOOK_HAIR: //Use the battle_config limits! [Skotlex] val = cap_value(val, MIN_HAIR_STYLE, MAX_HAIR_STYLE); |