Skip to content

Commit 7be6f7c

Browse files
committed
Scripts/Arena: Fix possible crash in Hook Point
* 480aa30 followup
1 parent 480aa30 commit 7be6f7c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/server/scripts/Battlegrounds/HookPoint/arena_hook_point.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class spell_arena_low_health_dying_trigger : public AuraScript
371371

372372
void Register() override
373373
{
374-
OnEffectRemove += AuraEffectRemoveFn(spell_arena_low_health_dying_trigger::HandleRemove, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY, AURA_EFFECT_HANDLE_REAL);
374+
AfterEffectRemove += AuraEffectRemoveFn(spell_arena_low_health_dying_trigger::HandleRemove, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY, AURA_EFFECT_HANDLE_REAL);
375375
}
376376
};
377377

src/server/scripts/Battlegrounds/battlegrounds_script_loader.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ void AddSC_battleground_deephaul_ravine();
6666
void AddSC_arena_blades_edge_legion();
6767

6868
void AddSC_arena_mugambala();
69+
void AddSC_arena_hook_point();
6970
void AddSC_arena_the_robodrome();
7071

7172
void AddSC_arena_maldraxxus_coliseum();
@@ -75,8 +76,6 @@ void AddSC_arena_nokhudon_proving_grounds();
7576

7677
void AddSC_arena_cage_of_carnage();
7778

78-
void AddSC_arena_hook_point();
79-
8079
// The name of this function should match:
8180
// void Add${NameOfDirectory}Scripts()
8281
void AddBattlegroundsScripts()
@@ -128,6 +127,7 @@ void AddBattlegroundsScripts()
128127
AddSC_arena_blades_edge_legion();
129128

130129
AddSC_arena_mugambala();
130+
AddSC_arena_hook_point();
131131
AddSC_arena_the_robodrome();
132132

133133
AddSC_arena_maldraxxus_coliseum();
@@ -136,6 +136,4 @@ void AddBattlegroundsScripts()
136136
AddSC_arena_nokhudon_proving_grounds();
137137

138138
AddSC_arena_cage_of_carnage();
139-
140-
AddSC_arena_hook_point();
141139
}

0 commit comments

Comments
 (0)