fix(Scripts/ShatteredHalls): Prevent boss from being pulled early (#16389)
* init * Update boss_nethekurse.cpp
This commit is contained in:
parent
69af2ddbe4
commit
ce788f68c2
2 changed files with 28 additions and 0 deletions
|
|
@ -111,6 +111,11 @@ struct boss_grand_warlock_nethekurse : public BossAI
|
|||
});
|
||||
|
||||
instance->SetBossState(DATA_NETHEKURSE, NOT_STARTED);
|
||||
|
||||
if (!_canAggro)
|
||||
{
|
||||
me->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
}
|
||||
}
|
||||
|
||||
void JustReachedHome() override
|
||||
|
|
@ -232,6 +237,19 @@ struct boss_grand_warlock_nethekurse : public BossAI
|
|||
}
|
||||
else if (action == ACTION_START_INTRO)
|
||||
{
|
||||
// Hack: Prevent from pulling from behind door
|
||||
me->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
_canAggro = true;
|
||||
|
||||
std::list<Creature*> creatureList;
|
||||
GetCreatureListWithEntryInGrid(creatureList, me, NPC_PEON, 60.0f);
|
||||
for (Creature* creature : creatureList)
|
||||
{
|
||||
if (creature)
|
||||
{
|
||||
creature->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
}
|
||||
}
|
||||
IntroRP();
|
||||
}
|
||||
}
|
||||
|
|
@ -253,6 +271,7 @@ struct boss_grand_warlock_nethekurse : public BossAI
|
|||
private:
|
||||
uint8 PeonEngagedCount = 0;
|
||||
uint8 PeonKilledCount = 0;
|
||||
bool _canAggro = false;
|
||||
};
|
||||
|
||||
class spell_tsh_shadow_bolt : public SpellScript
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue