Update boss_sapphiron_40.cpp

This commit is contained in:
Grimfeather
2025-07-03 14:48:01 +02:00
committed by GitHub
parent 8567cfd6a0
commit 6e414024ef

View File

@@ -117,11 +117,14 @@ public:
void InitializeAI() override
{
me->SummonGameObject(GO_SAPPHIRON_BIRTH, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, 0, 0, 0, 0, 0);
me->SetVisible(false);
me->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
me->SetReactState(REACT_PASSIVE);
ScriptedAI::InitializeAI();
if (pInstance->GetBossState(BOSS_SAPPHIRON) != DONE)
{
me->SummonGameObject(GO_SAPPHIRON_BIRTH, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, 0, 0, 0, 0, 0);
me->SetVisible(false);
me->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
me->SetReactState(REACT_PASSIVE);
ScriptedAI::InitializeAI();
}
}
bool IsInRoom()