Skip to content

Commit dc77c91

Browse files
committed
Hyjal/SSC vendor checks
1 parent bf36459 commit dc77c91

File tree

1 file changed

+36
-16
lines changed

1 file changed

+36
-16
lines changed

src/mod_zone_difficulty_handler.cpp

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,9 @@ std::string ZoneDifficulty::GetContentTypeString(uint32 type)
533533
case TYPE_RAID_T10:
534534
typestring = "for T10 Raids.";
535535
break;
536+
case TYPE_RAID_HYJAL:
537+
typestring = "for Battle for Mount Hyjal.";
538+
break;
536539
default:
537540
typestring = "-";
538541
}
@@ -1029,23 +1032,40 @@ void ZoneDifficulty::LogAndAnnounceKill(Map* map, bool isMythic)
10291032

10301033
bool ZoneDifficulty::CheckCompletionStatus(Creature* creature, Player* player, uint32 category) const
10311034
{
1032-
if (category == TYPE_RAID_T6)
1033-
{
1034-
if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", SETTING_BLACK_TEMPLE).value)
1035-
{
1036-
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.",
1037-
LANG_UNIVERSAL, player);
1038-
return false;
1039-
}
1040-
}
1041-
else if (category == TYPE_RAID_ZA)
1035+
switch (category)
10421036
{
1043-
if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", SETTING_ZULAMAN).value)
1044-
{
1045-
creature->Whisper("Ah, hero! The threads of fate bring you to me. To claim the rewards you desire, you must first confront Zul'jin on Mythic difficulty.",
1046-
LANG_UNIVERSAL, player);
1047-
return false;
1048-
}
1037+
case TYPE_RAID_SSC:
1038+
if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", SETTING_SSC).value)
1039+
{
1040+
creature->Whisper("Ah, hero! The threads of fate bring you to me. To claim the rewards you desire, you must first confront Lady Vashj on Mythic difficulty.",
1041+
LANG_UNIVERSAL, player);
1042+
return false;
1043+
}
1044+
break;
1045+
case TYPE_RAID_T6:
1046+
if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", SETTING_BLACK_TEMPLE).value)
1047+
{
1048+
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.",
1049+
LANG_UNIVERSAL, player);
1050+
return false;
1051+
}
1052+
break;
1053+
case TYPE_RAID_ZA:
1054+
if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", SETTING_ZULAMAN).value)
1055+
{
1056+
creature->Whisper("Ah, hero! The threads of fate bring you to me. To claim the rewards you desire, you must first confront Zul'jin on Mythic difficulty.",
1057+
LANG_UNIVERSAL, player);
1058+
return false;
1059+
}
1060+
break;
1061+
case TYPE_RAID_HYJAL:
1062+
if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", SETTING_HYJAL).value)
1063+
{
1064+
creature->Whisper("Ah, hero! The threads of fate bring you to me. To claim the rewards you desire, you must first confront Archimonde on Mythic difficulty.",
1065+
LANG_UNIVERSAL, player);
1066+
return false;
1067+
}
1068+
break;
10491069
}
10501070

10511071
return true;

0 commit comments

Comments
 (0)