diff options
author | Emistry Haoyan <Equinox1991@gmail.com> | 2016-10-27 22:42:41 +0800 |
---|---|---|
committer | Emistry Haoyan <Equinox1991@gmail.com> | 2016-10-27 22:42:41 +0800 |
commit | 4b319d0029f4daabbdb448badd2ab84bfea0a4d9 (patch) | |
tree | 2a46349daee59db0f49955302057d8009541b7b5 /src/map | |
parent | 5fdf937cbe04c75708ab27b4a15d0a63ffcedf02 (diff) | |
download | hercules-4b319d0029f4daabbdb448badd2ab84bfea0a4d9.tar.gz hercules-4b319d0029f4daabbdb448badd2ab84bfea0a4d9.tar.bz2 hercules-4b319d0029f4daabbdb448badd2ab84bfea0a4d9.tar.xz hercules-4b319d0029f4daabbdb448badd2ab84bfea0a4d9.zip |
Update party_check_state
- missing classes checking.
Diffstat (limited to 'src/map')
-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 c471cceb9..c7f63e647 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; } } } |