Core/Spells: Move Shadowfiend's passive aura to creature addon.
Partly reverts ddec56b3e0
This commit is contained in:
@@ -275,44 +275,6 @@ class spell_pri_reflective_shield_trigger : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
class spell_pri_shadowfiend : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_pri_shadowfiend() : SpellScriptLoader("spell_pri_shadowfiend") { }
|
||||
|
||||
class spell_pri_shadowfiend_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_pri_shadowfiend_SpellScript);
|
||||
|
||||
bool Validate(SpellInfo const* spellEntry)
|
||||
{
|
||||
return sSpellMgr->GetSpellInfo(PRIEST_SPELL_SHADOWFIEND) && sSpellMgr->GetSpellInfo(PRIEST_SPELL_SHADOWFIEND_TRIGGERED);
|
||||
}
|
||||
|
||||
void HandleTriggerSpell(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
Unit* unitTarget = GetHitUnit();
|
||||
if (!unitTarget)
|
||||
return;
|
||||
|
||||
if (Unit* pet = unitTarget->GetGuardianPet())
|
||||
{
|
||||
pet->CastSpell(pet, PRIEST_SPELL_SHADOWFIEND_TRIGGERED, true);
|
||||
}
|
||||
}
|
||||
|
||||
void Register()
|
||||
{
|
||||
OnEffectHitTarget += SpellEffectFn(spell_pri_shadowfiend_SpellScript::HandleTriggerSpell, EFFECT_1, SPELL_EFFECT_TRIGGER_SPELL);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
{
|
||||
return new spell_pri_shadowfiend_SpellScript;
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_priest_spell_scripts()
|
||||
{
|
||||
new spell_pri_guardian_spirit();
|
||||
@@ -321,5 +283,4 @@ void AddSC_priest_spell_scripts()
|
||||
new spell_pri_penance;
|
||||
new spell_pri_reflective_shield_trigger();
|
||||
new spell_pri_mind_sear();
|
||||
new spell_pri_shadowfiend();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user