DB/Spells: removed focus spell casts for steady shot and cobra shot from spell_linked_spell

This commit is contained in:
Ovalord
2017-12-22 23:47:55 +01:00
parent 7248c00f59
commit 6e580ad477
2 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1 @@
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (56641, 77767);

View File

@@ -1026,7 +1026,10 @@ class spell_hun_steady_shot : public SpellScriptLoader
else if (caster->HasAura(SPELL_HUNTER_TERMINATION_R_1))
spellId = SPELL_HUNTER_TERMINATION_R_1;
uint32 amount = GetSpellInfo()->Effects[EFFECT_0].BasePoints;
uint32 amount = 0;
if (SpellInfo const* focusSpell = sSpellMgr->GetSpellInfo(SPELL_HUNTER_STEADY_SHOT_FOCUS))
amount = focusSpell->Effects[EFFECT_0].BasePoints;
if (Aura* terminationAura = caster->GetAura(spellId))
{
if (Unit* spellTarget = GetExplTargetUnit())