feat(Core/Wintergrasp): aura-driven resurrect queue (#26002)

Co-authored-by: Balrok <balrok@getmangos.com>
Co-authored-by: Xfurry <xfurry.cmangos@outlook.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrew
2026-05-27 22:44:54 -03:00
committed by GitHub
parent e588638749
commit 0a9c55f308
5 changed files with 53 additions and 117 deletions
@@ -215,13 +215,19 @@ public:
bool OnGossipHello(Player* player, Creature* creature) override
{
if (creature->IsQuestGiver())
player->PrepareQuestMenu(creature->GetGUID());
Battlefield* wintergrasp = sBattlefieldMgr->GetBattlefieldByBattleId(BATTLEFIELD_BATTLEID_WG);
if (!wintergrasp)
return true;
if (!player->IsAlive())
{
wintergrasp->SendAreaSpiritHealerQueryOpcode(player, creature->GetGUID());
player->CastSpell(player, SPELL_WAITING_FOR_RESURRECT, true);
}
if (creature->IsQuestGiver())
player->PrepareQuestMenu(creature->GetGUID());
GraveyardVect graveyard = wintergrasp->GetGraveyardVector();
for (uint8 i = 0; i < graveyard.size(); i++)
if (graveyard[i]->GetControlTeamId() == player->GetTeamId())