fix(Core/Spells): Call of the Wild targeting other players (#17485)

* fix(Core/Spells): Call of the Wild targets

* comment
This commit is contained in:
avarishd
2023-10-11 23:09:53 +03:00
committed by GitHub
parent 8fbf143c03
commit 1753a8d0b9
2 changed files with 11 additions and 4 deletions

View File

@@ -1308,9 +1308,11 @@ class spell_hun_bestial_wrath : public SpellScript
}
};
class spell_hun_furious_howl : public SpellScript
// -24604 - Furious Howl
// 53434 - Call of the Wild
class spell_hun_target_self_and_pet : public SpellScript
{
PrepareSpellScript(spell_hun_furious_howl);
PrepareSpellScript(spell_hun_target_self_and_pet);
bool Load() override
{
@@ -1327,7 +1329,7 @@ class spell_hun_furious_howl : public SpellScript
void Register() override
{
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_hun_furious_howl::FilterTargets, EFFECT_ALL, TARGET_UNIT_CASTER_AREA_PARTY);
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_hun_target_self_and_pet::FilterTargets, EFFECT_ALL, TARGET_UNIT_CASTER_AREA_PARTY);
}
};
@@ -1361,5 +1363,5 @@ void AddSC_hunter_spell_scripts()
RegisterSpellScript(spell_hun_lock_and_load);
RegisterSpellScript(spell_hun_intimidation);
RegisterSpellScript(spell_hun_bestial_wrath);
RegisterSpellScript(spell_hun_furious_howl);
RegisterSpellScript(spell_hun_target_self_and_pet);
}