From 4b319d0029f4daabbdb448badd2ab84bfea0a4d9 Mon Sep 17 00:00:00 2001 From: Emistry Haoyan Date: Thu, 27 Oct 2016 22:42:41 +0800 Subject: Update party_check_state - missing classes checking. --- src/map/party.c | 14 +++++++++----- 1 file 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; } } } -- cgit v1.2.3-60-g2f50