Skip to content

Commit 7921261

Browse files
committed
patience
1 parent 9f3abb5 commit 7921261

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

‎src/server/scripts/EasternKingdoms/BlackrockMountain/BlackwingLair/boss_nefarian.cpp‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -258,17 +258,17 @@ struct boss_victor_nefarius : public BossAI
258258
case ACTION_BONE_CONSTRUCT_START_ATTACK:
259259
for (ObjectGuid const& summon : summons)
260260
{
261-
if (summon.GetEntry() == NPC_BONE_CONSTRUCT)
262-
if (Creature* boneConstruct = ObjectAccessor::GetCreature(*me, summon))
263-
if (!boneConstruct->IsAlive())
264-
{
265-
boneConstruct->SetVisible(true);
266-
boneConstruct->RemoveAllGameObjects();
267-
boneConstruct->Respawn();
268-
boneConstruct->RemoveUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
269-
boneConstruct->SetStandState(UNIT_STAND_STATE_STAND);
270-
SetAggressiveStateAfter(2s, boneConstruct);
271-
}
261+
if (Creature* boneConstruct = ObjectAccessor::GetCreature(*me, summon))
262+
if (boneConstruct->GetEntry() == NPC_BONE_CONSTRUCT && !boneConstruct->IsAlive())
263+
{
264+
boneConstruct->SetVisible(true);
265+
boneConstruct->RemoveAllGameObjects();
266+
boneConstruct->SetSpawnHealth();
267+
boneConstruct->setDeathState(ALIVE);
268+
boneConstruct->RemoveUnitFlag(UNIT_FLAG_UNINTERACTIBLE);
269+
boneConstruct->SetStandState(UNIT_STAND_STATE_STAND);
270+
SetAggressiveStateAfter(2s, boneConstruct);
271+
}
272272
}
273273
instance->SetData(DATA_DRAKONID_BONES, 0);
274274
break;

0 commit comments

Comments
 (0)