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:
@@ -0,0 +1,5 @@
|
|||||||
|
-- Call of the Wild
|
||||||
|
DELETE FROM `spell_script_names` WHERE `spell_id` IN (-24604,53434);
|
||||||
|
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||||
|
(-24604, 'spell_hun_target_self_and_pet'),
|
||||||
|
(53434, 'spell_hun_target_self_and_pet');
|
||||||
@@ -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
|
bool Load() override
|
||||||
{
|
{
|
||||||
@@ -1327,7 +1329,7 @@ class spell_hun_furious_howl : public SpellScript
|
|||||||
|
|
||||||
void Register() override
|
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_lock_and_load);
|
||||||
RegisterSpellScript(spell_hun_intimidation);
|
RegisterSpellScript(spell_hun_intimidation);
|
||||||
RegisterSpellScript(spell_hun_bestial_wrath);
|
RegisterSpellScript(spell_hun_bestial_wrath);
|
||||||
RegisterSpellScript(spell_hun_furious_howl);
|
RegisterSpellScript(spell_hun_target_self_and_pet);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user