mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Dungeon/Boss Script): Halls of Stone - Brann Respawn - Naxxaramus Noth Teleport phase Bug - Ulduar StormcCaller Brundir inFly Die Bug (#2063)
This commit is contained in:
@@ -157,6 +157,7 @@ public:
|
|||||||
|
|
||||||
void JustDied(Unit* killer) override
|
void JustDied(Unit* killer) override
|
||||||
{
|
{
|
||||||
|
me->NearTeleportTo(nothPosition.GetPositionX(), nothPosition.GetPositionY(), nothPosition.GetPositionZ(), nothPosition.GetOrientation(), true);
|
||||||
BossAI::JustDied(killer);
|
BossAI::JustDied(killer);
|
||||||
Talk(SAY_DEATH);
|
Talk(SAY_DEATH);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -587,6 +587,12 @@ public:
|
|||||||
ResetEvent();
|
ResetEvent();
|
||||||
if(pInstance)
|
if(pInstance)
|
||||||
{
|
{
|
||||||
|
if (Creature *brann = ObjectAccessor::GetCreature(*me, pInstance->GetData64(NPC_BRANN)))
|
||||||
|
{
|
||||||
|
brann->setDeathState(JUST_DIED);
|
||||||
|
brann->Respawn();
|
||||||
|
brann->AI()->DoAction(5);
|
||||||
|
}
|
||||||
if (pInstance->GetData(BOSS_TRIBUNAL_OF_AGES) != DONE)
|
if (pInstance->GetData(BOSS_TRIBUNAL_OF_AGES) != DONE)
|
||||||
pInstance->SetData(BOSS_TRIBUNAL_OF_AGES, NOT_STARTED);
|
pInstance->SetData(BOSS_TRIBUNAL_OF_AGES, NOT_STARTED);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -682,7 +682,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (!pInstance)
|
if (!pInstance)
|
||||||
return;
|
return;
|
||||||
|
me->NearTeleportTo(me->GetPositionX(), me->GetPositionY(), 427.5, me->GetOrientation());
|
||||||
if (IsEncounterComplete(pInstance, me))
|
if (IsEncounterComplete(pInstance, me))
|
||||||
{
|
{
|
||||||
pInstance->SetData(TYPE_ASSEMBLY, DONE);
|
pInstance->SetData(TYPE_ASSEMBLY, DONE);
|
||||||
|
|||||||
Reference in New Issue
Block a user