diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-08 21:39:57 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-08 21:39:57 +0000 |
commit | eeea994eea737a7715cd321024430800c4186c84 (patch) | |
tree | c457048bbf927b7ee0c887cde7da4a0913d63bd4 /src/map/party.c | |
parent | 975e208be2fc880de327d36607a6cc92a5d58c6a (diff) | |
download | hercules-eeea994eea737a7715cd321024430800c4186c84.tar.gz hercules-eeea994eea737a7715cd321024430800c4186c84.tar.bz2 hercules-eeea994eea737a7715cd321024430800c4186c84.tar.xz hercules-eeea994eea737a7715cd321024430800c4186c84.zip |
* Delayed the check for required items when a skill is cast to when they are consumed. Now skills only fail due to lack of items after being cast.
- Please make a bug report if you know of any skill that doesn't work like this in official.
* Fixed hp of other party members not being sent when you join a party.
* Removed unused global array names_id and renamed some structures that are used with variables of the same name.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11384 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/party.c b/src/map/party.c index 3cac19240..90689a612 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -335,10 +335,12 @@ int party_reply_invite(struct map_session_data *sd,int account_id,int flag) return 1; } +/// Invoked (from char-server) when a member is added to the party. int party_member_added(int party_id,int account_id,int char_id, int flag) { struct map_session_data *sd = map_id2sd(account_id),*sd2; struct party_data *p = party_search(party_id); + int i; if(sd == NULL || sd->status.char_id != char_id){ if (flag == 0) { if(battle_config.error_log) @@ -362,6 +364,12 @@ int party_member_added(int party_id,int account_id,int char_id, int flag) sd->status.party_id=party_id; party_check_conflict(sd); clif_party_member_info(p,sd); + for( i = 0; i < ARRAYLENGTH(p->data); ++i ) + {// hp of the other party members + sd2 = p->data[i].sd; + if( sd2 && sd2->status.account_id != account_id && sd2->status.char_id != char_id ) + clif_hpmeter_single(sd->fd, sd2->bl.id, sd2->battle_status.hp, sd2->battle_status.max_hp); + } clif_party_hp(sd); clif_party_xy(sd); clif_charnameupdate(sd); //Update char name's display [Skotlex] |