From 44ecdb7f88c6594d8f139ab049c9c989ae3afceb Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Tue, 10 Dec 2024 23:56:47 -0300 Subject: [PATCH] Check completion status improvement --- src/mod_zone_difficulty_scripts.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mod_zone_difficulty_scripts.cpp b/src/mod_zone_difficulty_scripts.cpp index 9a14131b..320157fd 100644 --- a/src/mod_zone_difficulty_scripts.cpp +++ b/src/mod_zone_difficulty_scripts.cpp @@ -745,14 +745,10 @@ class mod_zone_difficulty_rewardnpc : public CreatureScript // Check if the player has enough score in the respective category. - if (category == TYPE_RAID_T6) + if (!sZoneDifficulty->CheckCompletionStatus(creature, player, category)) { - if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", SETTING_BLACK_TEMPLE).value) - { - creature->Whisper("Ah, hero! The threads of fate bring you to me. To claim the rewards you desire, you must first confront Illidan Stormrage on Mythic difficulty.", - LANG_UNIVERSAL, player); - return true; - } + CloseGossipMenuFor(player); + return true; } uint32 availableScore = player->GetPlayerSetting(ModZoneDifficultyString + "score", category).value;