Skip to content

Commit

Permalink
Check completion status improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyeriah committed Dec 11, 2024
1 parent afe40c0 commit 44ecdb7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/mod_zone_difficulty_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 44ecdb7

Please sign in to comment.