diff options
author | Guilherme G. M <guilherme-gm@users.noreply.github.com> | 2017-02-26 03:41:50 -0300 |
---|---|---|
committer | Dastgir <dastgirpojee@rocketmail.com> | 2017-02-26 12:11:50 +0530 |
commit | 113865cd441c1ebd04f8d0b9d7380cc852a08fb9 (patch) | |
tree | c580d334d86accdb19bac294926c5cffe5f9cccd /src/map/clif.c | |
parent | 9a7a165d4dbad598907d3ecd54196e8f76c4f3f5 (diff) | |
download | hercules-113865cd441c1ebd04f8d0b9d7380cc852a08fb9.tar.gz hercules-113865cd441c1ebd04f8d0b9d7380cc852a08fb9.tar.bz2 hercules-113865cd441c1ebd04f8d0b9d7380cc852a08fb9.tar.xz hercules-113865cd441c1ebd04f8d0b9d7380cc852a08fb9.zip |
Added option to show classchange only to one player (#1587)
* Added option to show classchange only to one player
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 674fbba1d..6897c357a 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -1352,7 +1352,7 @@ void clif_set_unit_walking(struct block_list* bl, struct map_session_data *tsd, /// 01b0 <id>.L <type>.B <value>.L /// type: /// unused -void clif_class_change(struct block_list *bl, int class_, int type) +void clif_class_change(struct block_list *bl, int class_, int type, struct map_session_data *sd) { nullpo_retv(bl); @@ -1363,7 +1363,11 @@ void clif_class_change(struct block_list *bl, int class_, int type) WBUFL(buf,2)=bl->id; WBUFB(buf,6)=type; WBUFL(buf,7)=class_; - clif->send(buf,packet_len(0x1b0),bl,AREA); + + if (sd == NULL) + clif->send(buf, packet_len(0x1b0), bl, AREA); + else + clif->send(buf, packet_len(0x1b0), &sd->bl, SELF); } } |