Fixed autotraders counting for instance requirements (#4779)
This commit is contained in:
parent
af8c4ff6d7
commit
42f695fe8e
@ -20476,7 +20476,7 @@ BUILDIN_FUNC(instance_check_party)
|
||||
for( i = 0; i < MAX_PARTY; i++ ) {
|
||||
struct map_session_data *pl_sd;
|
||||
if( (pl_sd = p->data[i].sd) )
|
||||
if(map_id2bl(pl_sd->bl.id)) {
|
||||
if(map_id2bl(pl_sd->bl.id) && !pl_sd->state.autotrade) {
|
||||
if(pl_sd->status.base_level < min) {
|
||||
script_pushint(st, 0);
|
||||
return SCRIPT_CMD_SUCCESS;
|
||||
@ -20537,7 +20537,7 @@ BUILDIN_FUNC(instance_check_guild)
|
||||
struct map_session_data *pl_sd;
|
||||
|
||||
if ((pl_sd = g->member[i].sd)) {
|
||||
if (map_id2bl(pl_sd->bl.id)) {
|
||||
if (map_id2bl(pl_sd->bl.id) && !pl_sd->state.autotrade) {
|
||||
if (pl_sd->status.base_level < min) {
|
||||
script_pushint(st, 0);
|
||||
return SCRIPT_CMD_SUCCESS;
|
||||
@ -20599,7 +20599,7 @@ BUILDIN_FUNC(instance_check_clan)
|
||||
struct map_session_data *pl_sd;
|
||||
|
||||
if ((pl_sd = cd->members[i])) {
|
||||
if (map_id2bl(pl_sd->bl.id)) {
|
||||
if (map_id2bl(pl_sd->bl.id) && !pl_sd->state.autotrade) {
|
||||
if (pl_sd->status.base_level < min) {
|
||||
script_pushint(st, 0);
|
||||
return SCRIPT_CMD_SUCCESS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user