diff options
author | Killyana <morphone1@gmail.com> | 2020-04-28 02:04:53 +0200 |
---|---|---|
committer | Killyana <morphone1@gmail.com> | 2020-04-28 02:04:53 +0200 |
commit | ee5eace3c6d1fa489572c052daef4834e9c7f12c (patch) | |
tree | 0d5f95e3db43aa99bf096037e3098b82a9d0797d | |
parent | 1610337e67ed3f2fc8bc2ab7b3e3f2bd1b7b1033 (diff) |
DB/Pet: Lil' K.T
Ref #1364
-rw-r--r-- | sql/updates/world/3.3.5/2020_04_28_00_world.sql | 22 | ||||
-rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 6 |
2 files changed, 28 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2020_04_28_00_world.sql b/sql/updates/world/3.3.5/2020_04_28_00_world.sql new file mode 100644 index 00000000000..a0d17b66fff --- /dev/null +++ b/sql/updates/world/3.3.5/2020_04_28_00_world.sql @@ -0,0 +1,22 @@ +-- +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 17 AND `SourceEntry` IN (69683); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES +(17, 0, 69683, 0, 24, 1, 8, 0, 0, 0, '', "Mini K. T. (passif) Find Target hits only critters"); + +DELETE FROM `creature_template_addon` WHERE `entry` = 36979; +INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES +(36979, 0, 0, 0, 0, 0, '69683 70050'); + +DELETE FROM `spell_scripts` WHERE `id` IN (69682,69731); +INSERT INTO `spell_scripts` (`id`,`effIndex`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES +(69682 ,0,0,15,69681,0,0,0,0,0,0), +(69682 ,0,3,1,451,0,0,0,0,0,0), +(69682 ,0,3,16,16493,0,0,0,0,0,0), +(69731 ,0,0,1,402,0,0,0,0,0,0); + +DELETE FROM `spell_linked_spell` WHERE `spell_trigger` = 70049; +INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES +(70049, 69731, 0, 'Lich Pet emote'); + +-- To do: when the pet is summoned the player get the aura 69732 (the aura is added and removed by "Lich Pet Aura Remove"=69736 and "Lich Pet OnSummon"=69735) +-- The spell 69732 has the proc flag= 2 (0x2) - "Kill that yields experience or honor" when it procs it must trigger a cast of 69731 on/from the pet diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index ab25fea5565..c36b6d528e5 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3061,6 +3061,12 @@ void SpellMgr::LoadSpellInfoCorrections() { spellInfo->Effects[EFFECT_1].TriggerSpell = 46737; }); + + // Lich Pet + ApplySpellFix({ 70050 }, [](SpellInfo* spellInfo) + { + spellInfo->Effects[EFFECT_0].TriggerSpell = 70049; + }); } // Allows those to crit |