fix(DB/Quest): Aces High! quest issues (#23924)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: Gultask <100873791+Gultask@users.noreply.github.com> Co-authored-by: bench <heyitsbench@users.noreply.github.com> Co-authored-by: sogladev <sogladev@gmail.com>
This commit is contained in:
@@ -2512,6 +2512,29 @@ class spell_q9847_a_spirit_ally : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
enum WyrmrestSkytalon
|
||||
{
|
||||
NPC_WYRMREST_SKYTALON = 32535
|
||||
};
|
||||
|
||||
class spell_q13413_wyrmrest_skytalon_ride_periodic : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_q13413_wyrmrest_skytalon_ride_periodic);
|
||||
|
||||
void HandlePeriodic(AuraEffect const* aurEff)
|
||||
{
|
||||
PreventDefaultAction();
|
||||
if (Unit* target = GetTarget())
|
||||
if (Creature* skytalon = target->FindNearestCreature(NPC_WYRMREST_SKYTALON, 20.0f))
|
||||
target->CastSpell(skytalon, GetSpellInfo()->Effects[aurEff->GetEffIndex()].TriggerSpell, true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectPeriodic += AuraEffectPeriodicFn(spell_q13413_wyrmrest_skytalon_ride_periodic::HandlePeriodic, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_quest_spell_scripts()
|
||||
{
|
||||
RegisterSpellScript(spell_q5561_kodo_roundup_kodo_kombobulator);
|
||||
@@ -2585,4 +2608,5 @@ void AddSC_quest_spell_scripts()
|
||||
RegisterSpellScript(spell_q4735_collect_rookery_egg);
|
||||
RegisterSpellScript(spell_q10651_q10692_book_of_fel_names);
|
||||
RegisterSpellScript(spell_q9847_a_spirit_ally);
|
||||
RegisterSpellScript(spell_q13413_wyrmrest_skytalon_ride_periodic);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user