File tree 3 files changed +14
-4
lines changed
ScriptDevAI/scripts/kalimdor/dire_maul
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ INSERT INTO spell_scripts(Id, ScriptName) VALUES
64
64
(20038 ,' spell_explosion_razorgore' ),
65
65
(21651 ,' spell_opening_capping' ),
66
66
(22858 ,' spell_retaliation_creature' ),
67
+ (22876 ,' spell_summon_netherwalker' ),
67
68
(23134 ,' spell_goblin_bomb' ),
68
69
(23226 ,' spell_ritual_candle_aura' ),
69
70
(24228 ,' spell_arlokk_vanish' ),
Original file line number Diff line number Diff line change @@ -829,10 +829,6 @@ void UnitAI::TimedFleeingEnded()
829
829
830
830
bool UnitAI::DoFlee (uint32 duration)
831
831
{
832
- Unit* victim = m_unit->GetVictim ();
833
- if (!victim)
834
- return false ;
835
-
836
832
if (!duration)
837
833
duration = sWorld .getConfig (CONFIG_UINT32_CREATURE_FAMILY_FLEE_DELAY);
838
834
Original file line number Diff line number Diff line change @@ -308,6 +308,18 @@ struct RitualCandleAura : public SpellScript
308
308
}
309
309
};
310
310
311
+ // 22876 - Summon Netherwalker
312
+ struct SummonNetherWalker : public SpellScript
313
+ {
314
+ void OnSuccessfulFinish (Spell* spell) const override
315
+ {
316
+ Creature* caster = static_cast <Creature*>(spell->GetCaster ());
317
+ if (!caster || !caster->IsAlive () || !caster->IsCreature ())
318
+ return ;
319
+ caster->ForcedDespawn ();
320
+ }
321
+ };
322
+
311
323
void AddSC_dire_maul ()
312
324
{
313
325
Script* pNewScript = new Script;
@@ -326,4 +338,5 @@ void AddSC_dire_maul()
326
338
pNewScript->RegisterSelf ();
327
339
328
340
RegisterSpellScript<RitualCandleAura>(" spell_ritual_candle_aura" );
341
+ RegisterSpellScript<SummonNetherWalker>(" spell_summon_netherwalker" );
329
342
}
You can’t perform that action at this time.
0 commit comments