fix(Core/Spell): Instant Statue (#4319)

* fix(Core/Spell): Instant Statue

* make sure GetCaster() is not null

* values

* unit not player

* scriptName

* Update spell_item.cpp

* feat(Core/Spell): Implement ValidateSpellInfo

* Cherry-pick from 2b5d7eef3a & a0a158b5b8

* Revert "feat(Core/Spell): Implement ValidateSpellInfo"

This reverts commit 7690f02b49c82c65de3e92307063211a2e9941f5.

* Revert "Revert "feat(Core/Spell): Implement ValidateSpellInfo""

This reverts commit 8ffbb46fafe1f2d1597b4295b9e5fcec822d1181.

* Update spell_item.cpp

* dependant on https://github.com/azerothcore/azerothcore-wotlk/pull/4323

* untargetable
This commit is contained in:
Kitzunu
2021-02-02 16:08:52 +01:00
committed by GitHub
parent f85cb30c99
commit b43c5c9bf3
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1611180684314340400');
DELETE FROM `spell_script_names` WHERE `spell_id` = 75731;
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(75731, 'spell_item_instant_statue');
UPDATE `creature_template` SET `unit_flags`=`unit_flags`|33554432, `AIName` = '' WHERE `entry` = 40246;
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` IN (74890, -75731);
INSERT INTO `spell_linked_spell` (`spell_trigger`, `spell_effect`, `type`, `comment`) VALUES
(74890, 75055, 0, 'Instant Statue'),
(-75731, -74890, 0, 'Instant Statue'),
(-75731, -75055, 0, 'Instant Statue');