mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-14 17:49:10 +00:00
fix(Core/Spells): Script Yeh'kinya's Bramble (#17516)
* fix(Core/Spells): Script Yeh'kinya's Bramble * rogue screechers
This commit is contained in:
@@ -5076,6 +5076,32 @@ class spell_gen_jubling_cooldown : public SpellScript
|
||||
}
|
||||
};
|
||||
|
||||
// 12699 - Yeh'kinya's Bramble
|
||||
enum YehkinyaBramble
|
||||
{
|
||||
NPC_VALE_SCREECHER = 5307,
|
||||
NPC_ROGUE_VALE_SCREECHER = 5308
|
||||
};
|
||||
|
||||
class spell_gen_yehkinya_bramble : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_gen_yehkinya_bramble)
|
||||
|
||||
SpellCastResult CheckCast()
|
||||
{
|
||||
if (Unit* target = GetExplTargetUnit())
|
||||
if ((target->GetEntry() == NPC_VALE_SCREECHER || target->GetEntry() == NPC_ROGUE_VALE_SCREECHER) && target->isDead())
|
||||
return SPELL_CAST_OK;
|
||||
|
||||
return SPELL_FAILED_BAD_TARGETS;
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnCheckCast += SpellCheckCastFn(spell_gen_yehkinya_bramble::CheckCast);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_generic_spell_scripts()
|
||||
{
|
||||
RegisterSpellScript(spell_silithyst);
|
||||
@@ -5227,4 +5253,5 @@ void AddSC_generic_spell_scripts()
|
||||
RegisterSpellScript(spell_gen_valthalak_amulet);
|
||||
RegisterSpellScript(spell_gen_planting_scourge_banner);
|
||||
RegisterSpellScript(spell_gen_jubling_cooldown);
|
||||
RegisterSpellScript(spell_gen_yehkinya_bramble);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user