mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 20:19:49 +01:00
Core/Spells: fixed Lifebloom target limitation while not in Tree of Life form
This commit is contained in:
3
sql/updates/world/custom/custom_2019_05_12_03_world.sql
Normal file
3
sql/updates/world/custom/custom_2019_05_12_03_world.sql
Normal 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');
|
||||
@@ -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];
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user