fix(Scripts/Dragonblight): quest Fresh Remounts (#22846)

This commit is contained in:
Jelle Meeus
2025-09-08 22:40:01 -07:00
committed by GitHub
parent 6750edfee5
commit 79278aa504
2 changed files with 46 additions and 0 deletions

View File

@@ -2240,6 +2240,27 @@ class spell_dragonblight_corrosive_spit : public AuraScript
}
};
// 48297 - Hand Over Reins
enum HandOverReins
{
SPELL_ONSLAUGHT_RIDING_CROP = 48290
};
class spell_handover_reins : public SpellScript
{
PrepareSpellScript(spell_handover_reins);
void HandleScriptEffect(SpellEffIndex /*effIndex*/)
{
GetCaster()->RemoveAura(SPELL_ONSLAUGHT_RIDING_CROP);
}
void Register() override
{
OnEffectHitTarget += SpellEffectFn(spell_handover_reins::HandleScriptEffect, EFFECT_1, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
void AddSC_dragonblight()
{
new npc_conversing_with_the_depths_trigger();
@@ -2267,4 +2288,5 @@ void AddSC_dragonblight()
RegisterSpellScript(spell_q12096_q12092_bark);
new npc_torturer_lecraft();
RegisterSpellScript(spell_dragonblight_corrosive_spit);
RegisterSpellScript(spell_handover_reins);
}