mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
Scripts/MH:
* fixed quest "Flamebreaker" * added remaining sparring data for Hyjal Warden * added new sparring data for Twilight Vanquisher, Twilight Flamecaller, Blazebound Elemental, Ironbark Ancient and Twilight Overseer and Nordrassil Druid * Elemental Goo and Overseer's Key will now require their corresponding quest to be active * fixed some quest chaining for the Verdant Thicked area * fixed Nordrassil Druids casting their green beams on Ysera at Nordrassil * corrected damage and money loot values for Twilight Vanquisher, Twilight Flamecaller, and Twilight Overseer
This commit is contained in:
@@ -505,6 +505,24 @@ class spell_mh_ragnaros : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
class spell_mh_flamebreaker : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_mh_flamebreaker);
|
||||
|
||||
void HandleTick(AuraEffect const* /*aurEff*/)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
Unit* caster = GetTarget();
|
||||
if (Unit* target = ObjectAccessor::GetCreature(*caster, caster->GetChannelObjectGuid()))
|
||||
caster->CastSpell(target, GetSpellInfo()->Effects[EFFECT_0].TriggerSpell, true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectPeriodic += AuraEffectPeriodicFn(spell_mh_flamebreaker::HandleTick, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_mount_hyjal()
|
||||
{
|
||||
RegisterCreatureAI(npc_mh_aronus);
|
||||
@@ -513,4 +531,5 @@ void AddSC_mount_hyjal()
|
||||
RegisterCreatureAI(npc_mh_emerald_flameweaver);
|
||||
RegisterSpellScript(spell_mh_summon_emerald_flameweaver);
|
||||
RegisterSpellScript(spell_mh_ragnaros);
|
||||
RegisterAuraScript(spell_mh_flamebreaker);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user