Skip to content

Commit b0ca98f

Browse files
authored
Scripts/ForgeOfSouls: Ensure that Bronjahm teleport is executed when entering the second phase (#30428)
1 parent a81e7b2 commit b0ca98f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/server/scripts/Northrend/FrozenHalls/ForgeOfSouls/boss_bronjahm.cpp

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ enum Spells
5050

5151
enum Events
5252
{
53-
EVENT_MAGIC_BANE = 1,
54-
EVENT_SHADOW_BOLT = 2,
55-
EVENT_CORRUPT_SOUL = 3,
56-
EVENT_SOULSTORM = 4,
57-
EVENT_FEAR = 5
53+
EVENT_MAGIC_BANE = 1,
54+
EVENT_SHADOW_BOLT,
55+
EVENT_CORRUPT_SOUL,
56+
EVENT_SOULSTORM,
57+
EVENT_FEAR,
58+
EVENT_TELEPORT
5859
};
5960

6061
enum CombatPhases
@@ -114,9 +115,7 @@ struct boss_bronjahm : public BossAI
114115
if (events.IsInPhase(PHASE_1) && !HealthAbovePct(30))
115116
{
116117
events.SetPhase(PHASE_2);
117-
DoCast(me, SPELL_TELEPORT);
118-
events.ScheduleEvent(EVENT_FEAR, 12s, 16s, 0, PHASE_2);
119-
events.ScheduleEvent(EVENT_SOULSTORM, 100ms, 0, PHASE_2);
118+
events.ScheduleEvent(EVENT_TELEPORT, 1ms, 0, PHASE_2);
120119
}
121120
}
122121

@@ -196,6 +195,11 @@ struct boss_bronjahm : public BossAI
196195
me->CastSpell(nullptr, SPELL_FEAR, { SPELLVALUE_MAX_TARGETS, 1 });
197196
events.ScheduleEvent(EVENT_FEAR, 8s, 12s, 0, PHASE_2);
198197
break;
198+
case EVENT_TELEPORT:
199+
DoCastSelf(SPELL_TELEPORT);
200+
events.ScheduleEvent(EVENT_FEAR, 12s, 16s, 0, PHASE_2);
201+
events.ScheduleEvent(EVENT_SOULSTORM, 100ms, 0, PHASE_2);
202+
break;
199203
default:
200204
break;
201205
}

0 commit comments

Comments
 (0)