fix(Scripts/ICC): stop marking the Blood Prince Council as failed on spawn (#27665)

Valanar routed his spawn setup through JustReachedHome, so the council was
recorded and saved as failed the moment the princes spawned. The failed state
now only comes from the evade path.
This commit is contained in:
EricksOliveira
2026-09-19 14:44:39 -03:00
committed by GitHub
parent cb6660f695
commit 7838cd733b
@@ -867,20 +867,25 @@ public:
Unit::Kill(taldaram, taldaram);
}
void ResetPrince()
{
_canDie = true;
me->setActive(false);
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
me->SetHealth(me->GetMaxHealth());
DoAction(ACTION_CAST_INVOCATION);
}
void JustRespawned() override
{
BossAI::JustRespawned();
JustReachedHome();
ResetPrince();
}
void JustReachedHome() override
{
_canDie = true;
me->setActive(false);
ResetPrince();
instance->SetBossState(DATA_BLOOD_PRINCE_COUNCIL, FAIL);
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
me->SetHealth(me->GetMaxHealth());
DoAction(ACTION_CAST_INVOCATION);
}
void JustSummoned(Creature* summon) override