diff options
author | Michieru <michieru@0-mail.com> | 2014-02-14 01:47:39 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-02-14 02:26:58 +0100 |
commit | 6f264513874c80b912f47dbad1ec0347c67534e7 (patch) | |
tree | 51b684f659608eeca522c8095335340d5b846c95 /src/map/party.c | |
parent | 0642abcf9ef6e76861ee7d4b1a0b7f8bcd83f31f (diff) | |
download | hercules-6f264513874c80b912f47dbad1ec0347c67534e7.tar.gz hercules-6f264513874c80b912f47dbad1ec0347c67534e7.tar.bz2 hercules-6f264513874c80b912f47dbad1ec0347c67534e7.tar.xz hercules-6f264513874c80b912f47dbad1ec0347c67534e7.zip |
Renewal mechanics rebalance mega-update
- More info on the forums, at
http://hercules.ws/board/topic/4428-michierus-renewal-update/
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/map/party.c b/src/map/party.c index 9f144297d..a299c540e 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -1108,6 +1108,22 @@ int party_vforeachsamemap(int (*func)(struct block_list*,va_list), struct map_se return total; } +// Special check for Minstrel's and Wanderer's chorus skills. +int party_sub_count_chorus(struct block_list *bl, va_list ap) { + struct map_session_data *sd = (TBL_PC *)bl; + + if (sd->state.autotrade) + return 0; + + if (battle_config.idle_no_share && pc_isidle(sd)) + return 0; + + if ( (sd->class_&MAPID_THIRDMASK) != MAPID_MINSTRELWANDERER ) + return 0; + + return 1; +} + /** * Executes 'func' for each party member on the same map and within a 'range' cells area * @param func Function to execute @@ -1393,6 +1409,7 @@ void party_defaults(void) { party->share_loot = party_share_loot; party->send_dot_remove = party_send_dot_remove; party->sub_count = party_sub_count; + party->sub_count_chorus = party_sub_count_chorus; party->booking_register = party_booking_register; party->booking_update = party_booking_update; party->booking_search = party_booking_search; |