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

No files matched your search

+1
View File
@@ -2009,6 +2009,7 @@ void Spell::EffectSummonType(SpellEffIndex effIndex)
case 1161:
case 713:
case 3097:
case 2929:
numSummons = (damage > 0) ? damage : 1;
break;
default:
@@ -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);
}