diff options
author | Ibrahem Hossam <ibrahem.h.basyone@gmail.com> | 2016-12-02 11:49:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-02 11:49:48 +0200 |
commit | 017c388c94effffa838d0ffb2e823c805b91a1b2 (patch) | |
tree | 167f0e49342bcc699fcb9f36957dd0cf8eb15f98 /src/map/party.c | |
parent | cadfd69b1f8199d11eed5d303880cd847ad736da (diff) | |
parent | 4b319d0029f4daabbdb448badd2ab84bfea0a4d9 (diff) | |
download | hercules-017c388c94effffa838d0ffb2e823c805b91a1b2.tar.gz hercules-017c388c94effffa838d0ffb2e823c805b91a1b2.tar.bz2 hercules-017c388c94effffa838d0ffb2e823c805b91a1b2.tar.xz hercules-017c388c94effffa838d0ffb2e823c805b91a1b2.zip |
Merge pull request #1494 from Emistry/party_check_state
Update party_check_state
Diffstat (limited to 'src/map/party.c')
-rw-r--r-- | src/map/party.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/map/party.c b/src/map/party.c index 560b9f837..1c505bacc 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -236,24 +236,28 @@ void party_check_state(struct party_data *p) { int i; nullpo_retv(p); memset(&p->state, 0, sizeof(p->state)); - for (i = 0; i < MAX_PARTY; i ++) { + for (i = 0; i < MAX_PARTY; i++) { if (!p->party.member[i].online) continue; //Those not online shouldn't apart to skill usage and all that. switch (p->party.member[i].class_) { case JOB_MONK: case JOB_BABY_MONK: case JOB_CHAMPION: + case JOB_SURA: + case JOB_SURA_T: p->state.monk = 1; - break; + break; case JOB_STAR_GLADIATOR: p->state.sg = 1; - break; + break; case JOB_SUPER_NOVICE: case JOB_SUPER_BABY: + case JOB_SUPER_NOVICE_E: + case JOB_SUPER_BABY_E: p->state.snovice = 1; - break; + break; case JOB_TAEKWON: p->state.tk = 1; - break; + break; } } } |