mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(Scripts/ShatteredHalls): Prevent boss from being pulled early (#16389)
* init * Update boss_nethekurse.cpp
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user