Permalink
Browse files

Core/Hunter: Fix Call of the Wild targets

Closes #8618
Closes #8610
  • Loading branch information...
1 parent 6266303 commit ebae4ab249326ac9691ba9952d830b0bb5632703 @Vincent-Michael Vincent-Michael committed Dec 10, 2012
@@ -0,0 +1,4 @@
+DELETE FROM `spell_script_names` WHERE `spell_id` IN (-24604,53434);
+INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
+(-24604,'spell_hun_target_only_pet_and_owner'),
@thomas33

thomas33 Dec 10, 2012

Contributor

-24604?

@Shauren

Shauren Dec 10, 2012

Member

means all ranks.

+(53434,'spell_hun_target_only_pet_and_owner');
@@ -706,14 +706,14 @@ class spell_hun_tame_beast : public SpellScriptLoader
}
};
-class spell_hun_furious_howl : public SpellScriptLoader
+class spell_hun_target_only_pet_and_owner : public SpellScriptLoader
{
public:
- spell_hun_furious_howl() : SpellScriptLoader("spell_hun_furious_howl") { }
+ spell_hun_target_only_pet_and_owner() : SpellScriptLoader("spell_hun_target_only_pet_and_owner") { }
- class spell_hun_furious_howl_SpellScript : public SpellScript
+ class spell_hun_target_only_pet_and_owner_SpellScript : public SpellScript
{
- PrepareSpellScript(spell_hun_furious_howl_SpellScript);
+ PrepareSpellScript(spell_hun_target_only_pet_and_owner_SpellScript);
void FilterTargets(std::list<WorldObject*>& targets)
{
@@ -725,14 +725,14 @@ class spell_hun_furious_howl : public SpellScriptLoader
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);
+ OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_hun_target_only_pet_and_owner_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_CASTER_AREA_PARTY);
+ OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_hun_target_only_pet_and_owner_SpellScript::FilterTargets, EFFECT_1, TARGET_UNIT_CASTER_AREA_PARTY);
}
};
SpellScript* GetSpellScript() const
{
- return new spell_hun_furious_howl_SpellScript();
+ return new spell_hun_target_only_pet_and_owner_SpellScript();
}
};
@@ -752,5 +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();
+ new spell_hun_target_only_pet_and_owner();
}

1 comment on commit ebae4ab

nice good job!

Please sign in to comment.