mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +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
|
||||
{
|
||||
me->NearTeleportTo(nothPosition.GetPositionX(), nothPosition.GetPositionY(), nothPosition.GetPositionZ(), nothPosition.GetOrientation(), true);
|
||||
BossAI::JustDied(killer);
|
||||
Talk(SAY_DEATH);
|
||||
}
|
||||
|
||||
@@ -587,6 +587,12 @@ public:
|
||||
ResetEvent();
|
||||
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)
|
||||
pInstance->SetData(BOSS_TRIBUNAL_OF_AGES, NOT_STARTED);
|
||||
}
|
||||
|
||||
@@ -682,7 +682,7 @@ public:
|
||||
{
|
||||
if (!pInstance)
|
||||
return;
|
||||
|
||||
me->NearTeleportTo(me->GetPositionX(), me->GetPositionY(), 427.5, me->GetOrientation());
|
||||
if (IsEncounterComplete(pInstance, me))
|
||||
{
|
||||
pInstance->SetData(TYPE_ASSEMBLY, DONE);
|
||||
|
||||
Reference in New Issue
Block a user