mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
Core/Hunter: Fix Furious Howl targets
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `spell_script_names` WHERE `spell_id`=-24604;
|
||||
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||
(-24604,'spell_hun_furious_howl');
|
||||
@@ -706,6 +706,36 @@ class spell_hun_tame_beast : public SpellScriptLoader
|
||||
}
|
||||
};
|
||||
|
||||
class spell_hun_furious_howl : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_hun_furious_howl() : SpellScriptLoader("spell_hun_furious_howl") { }
|
||||
|
||||
class spell_hun_furious_howl_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_hun_furious_howl_SpellScript);
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
targets.clear();
|
||||
targets.push_back(GetCaster());
|
||||
if (Unit* owner = GetCaster()->GetOwner())
|
||||
targets.push_back(owner);
|
||||
}
|
||||
|
||||
void Register()
|
||||
{
|
||||
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_hun_furious_howl_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_CASTER_AREA_PARTY);
|
||||
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_hun_furious_howl_SpellScript::FilterTargets, EFFECT_1, TARGET_UNIT_CASTER_AREA_PARTY);
|
||||
}
|
||||
};
|
||||
|
||||
SpellScript* GetSpellScript() const
|
||||
{
|
||||
return new spell_hun_furious_howl_SpellScript();
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_hunter_spell_scripts()
|
||||
{
|
||||
new spell_hun_aspect_of_the_beast();
|
||||
@@ -722,4 +752,5 @@ void AddSC_hunter_spell_scripts()
|
||||
new spell_hun_misdirection_proc();
|
||||
new spell_hun_disengage();
|
||||
new spell_hun_tame_beast();
|
||||
new spell_hun_furious_howl();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user