Skip to content

Commit 0f9dce0

Browse files
committed
fix: also check requirements when rewarding to prevent exploits
1 parent 77ed1b7 commit 0f9dce0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/mod_zone_difficulty_handler.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,16 @@ void ZoneDifficulty::RewardItem(Player* player, uint8 category, uint8 itemType,
10311031
}
10321032
}
10331033

1034+
if (category == TYPE_RAID_T6)
1035+
{
1036+
if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", SETTING_BLACK_TEMPLE).value)
1037+
{
1038+
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.",
1039+
LANG_UNIVERSAL, player);
1040+
return;
1041+
}
1042+
}
1043+
10341044
if (availableScore < reward.Price)
10351045
{
10361046
if (player->GetSession())

0 commit comments

Comments
 (0)