mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
fix(DB/Items): Unhatched Jubling Egg obtaining + RP (#17478)
This commit is contained in:
@@ -5047,6 +5047,35 @@ class spell_gen_planting_scourge_banner : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
enum Jubling
|
||||
{
|
||||
SPELL_JUBLING_COOLDOWN_1_WEEK = 23852
|
||||
};
|
||||
|
||||
// 23853 - Jubling Cooldown
|
||||
class spell_gen_jubling_cooldown : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_gen_jubling_cooldown);
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
return ValidateSpellInfo({ SPELL_JUBLING_COOLDOWN_1_WEEK });
|
||||
}
|
||||
|
||||
void HandleScript(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
if (Player* target = GetHitPlayer())
|
||||
{
|
||||
target->CastSpell(target, SPELL_JUBLING_COOLDOWN_1_WEEK); // 1 week
|
||||
}
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_gen_jubling_cooldown::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_generic_spell_scripts()
|
||||
{
|
||||
RegisterSpellScript(spell_silithyst);
|
||||
@@ -5197,4 +5226,5 @@ void AddSC_generic_spell_scripts()
|
||||
RegisterSpellScript(spell_gen_spirit_of_competition_winner);
|
||||
RegisterSpellScript(spell_gen_valthalak_amulet);
|
||||
RegisterSpellScript(spell_gen_planting_scourge_banner);
|
||||
RegisterSpellScript(spell_gen_jubling_cooldown);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user