mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Scripts/IcecrownCitadel): Fix Blood-Queen Lana`thel reset and fli… (#15601)
fix(Scripts/IcecrownCitadel): Fix Blood-Queen Lana`thel reset and flickering animation
This commit is contained in:
@@ -164,6 +164,17 @@ public:
|
||||
|
||||
events.Reset();
|
||||
summons.DespawnAll();
|
||||
|
||||
me->SetCanFly(false);
|
||||
me->SetDisableGravity(false);
|
||||
|
||||
if (bEnteredCombat)
|
||||
{
|
||||
bEnteredCombat = false;
|
||||
if (me->IsAlive() && instance->GetBossState(DATA_BLOOD_QUEEN_LANA_THEL) != DONE)
|
||||
instance->SetBossState(DATA_BLOOD_QUEEN_LANA_THEL, FAIL);
|
||||
}
|
||||
|
||||
if (instance->GetBossState(DATA_BLOOD_QUEEN_LANA_THEL) != DONE)
|
||||
instance->SetBossState(DATA_BLOOD_QUEEN_LANA_THEL, NOT_STARTED);
|
||||
}
|
||||
@@ -253,20 +264,6 @@ public:
|
||||
GoToMinchar();
|
||||
}
|
||||
|
||||
void JustReachedHome() override
|
||||
{
|
||||
me->SetCanFly(false);
|
||||
me->SetDisableGravity(false);
|
||||
|
||||
_JustReachedHome();
|
||||
if (bEnteredCombat)
|
||||
{
|
||||
bEnteredCombat = false;
|
||||
if (me->IsAlive() && instance->GetBossState(DATA_BLOOD_QUEEN_LANA_THEL) != DONE)
|
||||
instance->SetBossState(DATA_BLOOD_QUEEN_LANA_THEL, FAIL);
|
||||
}
|
||||
}
|
||||
|
||||
void KilledUnit(Unit* victim) override
|
||||
{
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER)
|
||||
|
||||
Reference in New Issue
Block a user