summaryrefslogtreecommitdiff
path: root/src/map/party.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-09-21 01:14:59 -0300
committershennetsind <ind@henn.et>2014-09-21 01:14:59 -0300
commitff787408bcc523ebd4b7919db65423f741351664 (patch)
tree8aa90b3c7b025f463837f732a94c12990eb7662e /src/map/party.c
parent14475dc879bcd2cf1f9816fb9448831a9b33d295 (diff)
downloadhercules-ff787408bcc523ebd4b7919db65423f741351664.tar.gz
hercules-ff787408bcc523ebd4b7919db65423f741351664.tar.bz2
hercules-ff787408bcc523ebd4b7919db65423f741351664.tar.xz
hercules-ff787408bcc523ebd4b7919db65423f741351664.zip
Fixed Bug 8293
Implemented official party-leader-changed-packet Special Thanks to kyeme! http://hercules.ws/board/tracker/issue-8293-change-party-leader/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/party.c')
-rw-r--r--src/map/party.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/party.c b/src/map/party.c
index 7cf340edb..f4a5c870a 100644
--- a/src/map/party.c
+++ b/src/map/party.c
@@ -686,12 +686,10 @@ bool party_changeleader(struct map_session_data *sd, struct map_session_data *ts
//Change leadership.
p->party.member[mi].leader = 0;
- if (p->data[mi].sd->fd)
- clif->message(p->data[mi].sd->fd, msg_txt(284));
-
p->party.member[tmi].leader = 1;
- if (p->data[tmi].sd->fd)
- clif->message(p->data[tmi].sd->fd, msg_txt(285));
+
+ /** update members **/
+ clif->PartyLeaderChanged(p->data[mi].sd, p->data[mi].sd->status.account_id, p->data[tmi].sd->status.account_id);
//Update info.
intif->party_leaderchange(p->party.party_id,p->party.member[tmi].account_id,p->party.member[tmi].char_id);