mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Scripts/Naxxramas): Schedule Thaddius screams (#24039)
This commit is contained in:
@@ -199,6 +199,7 @@ public:
|
||||
_events.Reset();
|
||||
_currentWingTaunt = SAY_FIRST_WING_TAUNT;
|
||||
_horsemanLoaded = 0;
|
||||
_thaddiusScreamsScheduled = false;
|
||||
|
||||
// Achievements
|
||||
_abominationsKilled = 0;
|
||||
@@ -274,7 +275,11 @@ public:
|
||||
{
|
||||
InstanceScript::OnPlayerEnter(player);
|
||||
|
||||
_events.ScheduleEvent(EVENT_THADDIUS_SCREAMS, 2min, 2min + 30s);
|
||||
if (!_thaddiusScreamsScheduled)
|
||||
{
|
||||
_thaddiusScreamsScheduled = true;
|
||||
_events.ScheduleEvent(EVENT_THADDIUS_SCREAMS, 2min, 2min + 30s);
|
||||
}
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* creature) override
|
||||
@@ -660,7 +665,7 @@ public:
|
||||
break;
|
||||
|
||||
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:
|
||||
_horsemanAchievement = false;
|
||||
@@ -723,6 +728,7 @@ private:
|
||||
EventMap _events;
|
||||
uint8 _currentWingTaunt;
|
||||
uint8 _horsemanLoaded;
|
||||
bool _thaddiusScreamsScheduled;
|
||||
|
||||
// GameObjects
|
||||
std::set<GameObject*> _heiganEruption[HeiganEruptSectionCount];
|
||||
|
||||
Reference in New Issue
Block a user