mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
fix(Scripts/Brewfest): Reload faction auras for revelers after respawn. (#9264)
Fixes #7871
This commit is contained in:
@@ -362,6 +362,14 @@ public:
|
||||
{
|
||||
reveler->SetRespawnDelay(5 * MINUTE);
|
||||
reveler->Respawn();
|
||||
|
||||
// It's here because SmartAI::JustRespawned restores original faction
|
||||
// So we need to delay a little bit reloading auras from creature_template_addon
|
||||
reveler->m_Events.AddEventAtOffset([reveler]()
|
||||
{
|
||||
reveler->RemoveAllAuras();
|
||||
reveler->LoadCreaturesAddon(true);
|
||||
}, 100ms);
|
||||
}
|
||||
}
|
||||
revelerGUIDs.clear();
|
||||
|
||||
Reference in New Issue
Block a user