Fixed an issue in the quest system (#6264)

The spawn timer of permanent monster was still INVALID_TIMER when the quest_update_objective function was called so the check failed
This commit is contained in:
Atemo 2021-09-23 23:38:17 +02:00 committed by GitHub
parent 373d724bdf
commit cf27d0ed21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -729,7 +729,7 @@ void quest_update_objective(struct map_session_data *sd, struct mob_data* md)
objective_check++; objective_check++;
if (qi->objectives[j]->element == ELE_ALL || qi->objectives[j]->element == md->status.def_ele) if (qi->objectives[j]->element == ELE_ALL || qi->objectives[j]->element == md->status.def_ele)
objective_check++; objective_check++;
if (qi->objectives[j]->mapid < 0 || (qi->objectives[j]->mapid == sd->bl.m && md->spawn_timer != INVALID_TIMER)) if (qi->objectives[j]->mapid < 0 || (qi->objectives[j]->mapid == sd->bl.m && md->spawn != nullptr))
objective_check++; objective_check++;
} }