Core/Spells: fixed Lifebloom target limitation while not in Tree of Life form

This commit is contained in:
Ovahlord
2019-05-12 23:18:11 +02:00
parent 9bf40cfee4
commit da94a36ac6
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`= 'spell_dru_lifebloom' AND `spell_id`= 94447;
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(94447, 'spell_dru_lifebloom');

View File

@@ -5263,6 +5263,18 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->MaxAuraTargets = 3;
});
// Lifebloom
ApplySpellFix({ 33763 }, [](SpellInfo* spellInfo)
{
spellInfo->AttributesEx5 |= SPELL_ATTR5_SINGLE_TARGET_SPELL;
});
// Tree of Life (Passive)
ApplySpellFix({ 81098 }, [](SpellInfo* spellInfo)
{
spellInfo->Effects[EFFECT_1].ApplyAuraName = SPELL_AURA_OVERRIDE_ACTIONBAR_SPELLS;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];

View File

@@ -605,6 +605,7 @@ class spell_dru_insect_swarm : public AuraScript
};
// 33763 - Lifebloom
// 94447 - Lifebloom
class spell_dru_lifebloom : public AuraScript
{
PrepareAuraScript(spell_dru_lifebloom);