mirror of
https://github.com/ZhengPeiRu21/mod-individual-progression
synced 2025-11-29 23:44:51 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user