From da94a36ac62fabf97a7d4bcaa0f6532ab82f1ba6 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Sun, 12 May 2019 23:18:11 +0200 Subject: [PATCH] Core/Spells: fixed Lifebloom target limitation while not in Tree of Life form --- .../world/custom/custom_2019_05_12_03_world.sql | 3 +++ src/server/game/Spells/SpellMgr.cpp | 12 ++++++++++++ src/server/scripts/Spells/spell_druid.cpp | 1 + 3 files changed, 16 insertions(+) create mode 100644 sql/updates/world/custom/custom_2019_05_12_03_world.sql diff --git a/sql/updates/world/custom/custom_2019_05_12_03_world.sql b/sql/updates/world/custom/custom_2019_05_12_03_world.sql new file mode 100644 index 00000000000..ff0c654a870 --- /dev/null +++ b/sql/updates/world/custom/custom_2019_05_12_03_world.sql @@ -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'); diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 13b7d3f3fae..44914ab065b 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -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]; diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp index 62d6ed8b7d8..f0bdad7f22f 100644 --- a/src/server/scripts/Spells/spell_druid.cpp +++ b/src/server/scripts/Spells/spell_druid.cpp @@ -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);