@@ -1020,25 +1020,31 @@ class mod_zone_difficulty_dungeonmaster : public CreatureScript
1020
1020
{
1021
1021
mod_zone_difficulty_dungeonmasterAI (Creature* creature) : ScriptedAI(creature) { }
1022
1022
1023
+ bool CanBeSeen (Player const * /* seer*/ ) override
1024
+ {
1025
+ if (me->GetMap () && me->GetMap ()->IsHeroic () && !me->GetMap ()->IsRaid ())
1026
+ if (!sZoneDifficulty ->MythicmodeInNormalDungeons )
1027
+ return false ;
1028
+
1029
+ if (!sZoneDifficulty ->MythicmodeEnable )
1030
+ return false ;
1031
+
1032
+ return true ;
1033
+ }
1034
+
1023
1035
void Reset () override
1024
1036
{
1025
- // LOG_INFO("module", "MOD-ZONE-DIFFICULTY: mod_zone_difficulty_dungeonmasterAI: Reset happens.");
1026
1037
if (me->GetMap () && me->GetMap ()->IsHeroic () && !me->GetMap ()->IsRaid ())
1027
1038
{
1028
1039
if (!sZoneDifficulty ->MythicmodeEnable )
1029
- {
1030
1040
return ;
1031
- }
1032
- // LOG_INFO("module", "MOD-ZONE-DIFFICULTY: We're inside a heroic 5man now.");
1041
+
1033
1042
// todo: add the list for the wotlk heroic dungeons quests
1034
1043
for (auto & quest : sZoneDifficulty ->DailyHeroicQuests )
1035
1044
{
1036
- // LOG_INFO("module", "MOD-ZONE-DIFFICULTY: Checking quest {} and MapId {}", quest, me->GetMapId());
1037
1045
if (sPoolMgr ->IsSpawnedObject <Quest>(quest))
1038
- {
1039
1046
if (sZoneDifficulty ->HeroicTBCQuestMapList [me->GetMapId ()] == quest)
1040
1047
{
1041
- // LOG_INFO("module", "MOD-ZONE-DIFFICULTY: mod_zone_difficulty_dungeonmasterAI: Quest with id {} is active.", quest);
1042
1048
me->SetPhaseMask (1 , true );
1043
1049
1044
1050
_scheduler.Schedule (15s, [this ](TaskContext /* context*/ )
@@ -1055,7 +1061,6 @@ class mod_zone_difficulty_dungeonmaster : public CreatureScript
1055
1061
});
1056
1062
break ;
1057
1063
}
1058
- }
1059
1064
}
1060
1065
}
1061
1066
}
0 commit comments