aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKillyana <morphone1@gmail.com>2019-07-11 18:32:15 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-15 21:51:07 +0100
commit4378ad98abe6b2d557ee016a83d660979b10deb0 (patch)
tree30cf2cf526649b04de5b6f847423b54f21d567fe
parentee4388a65129d13899ff9f052acd0a5c094ab22e (diff)
DB/Quest: Seeds of the Blacksouled Keepers
(cherry picked from commit 42abf69a27058251b7dd59a59c1f059f834431e4)
-rw-r--r--sql/updates/world/master/2021_12_15_01_world_2019_07_11_01_world.sql10
-rw-r--r--src/server/game/Spells/SpellMgr.cpp7
2 files changed, 17 insertions, 0 deletions
diff --git a/sql/updates/world/master/2021_12_15_01_world_2019_07_11_01_world.sql b/sql/updates/world/master/2021_12_15_01_world_2019_07_11_01_world.sql
new file mode 100644
index 00000000000..fbbb18f7a85
--- /dev/null
+++ b/sql/updates/world/master/2021_12_15_01_world_2019_07_11_01_world.sql
@@ -0,0 +1,10 @@
+--
+SET @ENTRY := 23876;
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
+INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
+(@ENTRY,0,0,0,60,0,100,0,1000,1000,3000,5000,11,42526,0,0,0,0,0,1,0,0,0,0,0,0,0,"Spore - On update - Cast Spore Cloud"),
+(@ENTRY,0,1,0,25,0,100,0,0,0,0,0,8,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Spore - On reset - Set passive"),
+(@ENTRY,0,2,0,8,0,100,1,43354,0,0,0,33,24235,0,0,0,0,0,7,0,0,0,0,0,0,0,"Spore - On Spellhit By 43354 - Quest Credit (Phase 1)"),
+(@ENTRY,0,3,0,8,0,100,1,43354,0,0,0,41,6000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Spore - On Spellhit By 43354 - Despawn"),
+(@ENTRY,0,4,0,8,0,100,1,43354,0,0,0,75,42525,0,0,0,0,0,1,0,0,0,0,0,0,0,"Spore - On Spellhit By 43354 - Add aura");
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index ec4c3d219e2..25253d321cb 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -4591,6 +4591,13 @@ void SpellMgr::LoadSpellInfoCorrections()
{
spellInfo->AttributesEx3 |= SPELL_ATTR3_NO_INITIAL_AGGRO;
});
+
+ // Spore - Spore Visual
+ ApplySpellFix({ 42525 }, [](SpellInfo* spellInfo)
+ {
+ spellInfo->AttributesEx3 |= SPELL_ATTR3_DEATH_PERSISTENT;
+ spellInfo->AttributesEx2 |= SPELL_ATTR2_CAN_TARGET_DEAD;
+ });
//
// FIRELANDS SPELLS