Save Horsemen Portal Between Sessions (#827)

fix Deathknight Wing portal going dark after leaving and returning to the instance later.
This commit is contained in:
Dinkledork
2025-10-25 17:13:57 -06:00
committed by GitHub
parent d8433bfa31
commit 8efd70507c

View File

@@ -607,10 +607,15 @@ public:
{
_events.RescheduleEvent(EVENT_AND_THEY_WOULD_ALL_GO_DOWN_TOGETHER, 15s);
if (horsemanKilled != HorsemanCount)
return false;
if (horsemanKilled == 0)
{
ActivateWingPortal(DATA_HORSEMAN_PORTAL);
break;
}
if (horsemanKilled != HorsemanCount)
return false;
// all horsemans are killed
if (Creature* cr = GetCreature(DATA_BARON_RIVENDARE_BOSS))
cr->CastSpell(cr, SPELL_THE_FOUR_HORSEMAN_CREDIT, true);