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:
Ovahlord
2018-09-11 14:43:29 +02:00
parent 52da459a83
commit 1fb1f77ccf
3 changed files with 151 additions and 0 deletions

View File

@@ -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);
}