mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user