fix(Scripts/Naxxramas): Schedule Thaddius screams (#24039)
This commit is contained in:
@@ -199,6 +199,7 @@ public:
|
|||||||
_events.Reset();
|
_events.Reset();
|
||||||
_currentWingTaunt = SAY_FIRST_WING_TAUNT;
|
_currentWingTaunt = SAY_FIRST_WING_TAUNT;
|
||||||
_horsemanLoaded = 0;
|
_horsemanLoaded = 0;
|
||||||
|
_thaddiusScreamsScheduled = false;
|
||||||
|
|
||||||
// Achievements
|
// Achievements
|
||||||
_abominationsKilled = 0;
|
_abominationsKilled = 0;
|
||||||
@@ -274,8 +275,12 @@ public:
|
|||||||
{
|
{
|
||||||
InstanceScript::OnPlayerEnter(player);
|
InstanceScript::OnPlayerEnter(player);
|
||||||
|
|
||||||
|
if (!_thaddiusScreamsScheduled)
|
||||||
|
{
|
||||||
|
_thaddiusScreamsScheduled = true;
|
||||||
_events.ScheduleEvent(EVENT_THADDIUS_SCREAMS, 2min, 2min + 30s);
|
_events.ScheduleEvent(EVENT_THADDIUS_SCREAMS, 2min, 2min + 30s);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void OnCreatureCreate(Creature* creature) override
|
void OnCreatureCreate(Creature* creature) override
|
||||||
{
|
{
|
||||||
@@ -660,7 +665,7 @@ public:
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
instance->PlayDirectSoundToMap(SOUND_SCREAM + urand(0, 3));
|
instance->PlayDirectSoundToMap(SOUND_SCREAM + urand(0, 3));
|
||||||
return _events.ScheduleEvent(EVENT_THADDIUS_SCREAMS, 2min, 2min + 30s);
|
return _events.ScheduleEvent(EVENT_THADDIUS_SCREAMS, 5min, 10min);
|
||||||
}
|
}
|
||||||
case EVENT_AND_THEY_WOULD_ALL_GO_DOWN_TOGETHER:
|
case EVENT_AND_THEY_WOULD_ALL_GO_DOWN_TOGETHER:
|
||||||
_horsemanAchievement = false;
|
_horsemanAchievement = false;
|
||||||
@@ -723,6 +728,7 @@ private:
|
|||||||
EventMap _events;
|
EventMap _events;
|
||||||
uint8 _currentWingTaunt;
|
uint8 _currentWingTaunt;
|
||||||
uint8 _horsemanLoaded;
|
uint8 _horsemanLoaded;
|
||||||
|
bool _thaddiusScreamsScheduled;
|
||||||
|
|
||||||
// GameObjects
|
// GameObjects
|
||||||
std::set<GameObject*> _heiganEruption[HeiganEruptSectionCount];
|
std::set<GameObject*> _heiganEruption[HeiganEruptSectionCount];
|
||||||
|
|||||||
Reference in New Issue
Block a user