fix(Scripts/HallsOfLightning): Remove early handling for General Bjarngrim causing event cancellation (#24335)
This commit is contained in:
parent
d8b4f93bc6
commit
3fd0fa1e64
1 changed files with 12 additions and 11 deletions
|
|
@ -110,7 +110,7 @@ enum Yells
|
|||
|
||||
struct boss_bjarngrim : public npc_escortAI
|
||||
{
|
||||
boss_bjarngrim(Creature* creature) : npc_escortAI(creature), summons(creature)
|
||||
boss_bjarngrim(Creature* creature) : npc_escortAI(creature), summons(creature), m_uiStance(STANCE_BATTLE)
|
||||
{
|
||||
m_pInstance = creature->GetInstanceScript();
|
||||
InitializeWaypoints();
|
||||
|
|
@ -301,18 +301,19 @@ struct boss_bjarngrim : public npc_escortAI
|
|||
{
|
||||
events.Update(diff);
|
||||
|
||||
if (uint32 eventId = events.ExecuteEvent())
|
||||
{
|
||||
if (eventId == EVENT_CHARGE_UP)
|
||||
{
|
||||
me->CastSpell(me, SPELL_CHARGE_UP, true);
|
||||
me->CastSpell(me, SPELL_TEMPORARY_ELECTRICAL_CHARGE, true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!me->IsInCombat())
|
||||
{
|
||||
// Handle charge-up only when out of combat
|
||||
if (uint32 eventId = events.ExecuteEvent())
|
||||
{
|
||||
if (eventId == EVENT_CHARGE_UP)
|
||||
{
|
||||
DoCastSelf(SPELL_CHARGE_UP, true);
|
||||
DoCastSelf(SPELL_TEMPORARY_ELECTRICAL_CHARGE, true);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Return since we have no target
|
||||
if (!UpdateVictim())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue