mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Scripts/HallsOfLightning): Remove early handling for General Bjarngrim causing event cancellation (#24335)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user