소스 검색

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
Atemo 3 년 전
부모
커밋
cf27d0ed21
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/map/quest.cpp

+ 1 - 1
src/map/quest.cpp

@@ -729,7 +729,7 @@ void quest_update_objective(struct map_session_data *sd, struct mob_data* md)
 					objective_check++;
 				if (qi->objectives[j]->element == ELE_ALL || qi->objectives[j]->element == md->status.def_ele)
 					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++;
 			}