diff options
author | offl <offl@users.noreply.github.com> | 2020-12-27 03:02:19 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-03-05 16:48:58 +0100 |
commit | eed03fc797bb55d229d108eda1c41583ed42847a (patch) | |
tree | d741a3159d8371cfa58655bac061dc2ed384411e /sql | |
parent | dde5a3e32645060fbcc4856770dfc6a0c43a3947 (diff) |
DB/Creature: Add conditions to Steam Tonk's spells & misc fixes
Ref ed8bf7f0e2e67ca1eb65ffa05518fe29df526642 Updates #9373
(cherry picked from commit 15b37ba15aacafd4335e5b0726044acbf4cdf1f4)
Diffstat (limited to 'sql')
-rw-r--r-- | sql/updates/world/master/2022_03_05_23_world_2020_12_27_00_world.sql | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sql/updates/world/master/2022_03_05_23_world_2020_12_27_00_world.sql b/sql/updates/world/master/2022_03_05_23_world_2020_12_27_00_world.sql new file mode 100644 index 00000000000..c47c2435ef1 --- /dev/null +++ b/sql/updates/world/master/2022_03_05_23_world_2020_12_27_00_world.sql @@ -0,0 +1,26 @@ +-- +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` IN (25099,28000) AND `ConditionValue2` = 15328; +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` IN (25032,25029,27745); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(13,1,25099,0,1,31,0,3,15328,0,0,0,0,"","Group 1: Spell 'Land Mine Trigger' (Effect 0) targets creature 'Darkmoon Steam Tonk'"), +-- Dunno if owner should be affected or not +(13,1,28000,0,1,31,0,3,15328,0,0,0,0,"","Group 1: Spell 'Detonation' (Effect 0) targets creature 'Darkmoon Steam Tonk'"), +(13,1,25032,0,0,31,0,3,15328,0,0,0,0,"","Group 0: Spell 'Machine Gun' (Effect 0) targets creature 'Darkmoon Steam Tonk'"), +(13,1,25032,0,1,31,0,3,19405,0,0,0,0,"","Group 1: Spell 'Machine Gun' (Effect 0) targets creature 'Steam Tonk'"), +(13,7,25029,0,0,31,0,3,15328,0,0,0,0,"","Group 0: Spell 'Flamethrower' (Effect 0, 1, 2) targets creature 'Darkmoon Steam Tonk'"), +(13,7,25029,0,1,31,0,3,19405,0,0,0,0,"","Group 1: Spell 'Flamethrower' (Effect 0, 1, 2) targets creature 'Steam Tonk'"), +(13,1,27745,0,0,31,0,3,15328,0,0,0,0,"","Group 0: Spell 'Explosion' (Effect 1) targets creature 'Darkmoon Steam Tonk'"), +(13,1,27745,0,1,31,0,3,19405,0,0,0,0,"","Group 1: Spell 'Explosion' (Effect 1) targets creature 'Steam Tonk'"); + +-- Missing spells for Darkmoon Steam Tonk +DELETE FROM `creature_template_spell` WHERE `CreatureID` = 15328 AND `Index` IN (1,2); +INSERT INTO `creature_template_spell` (`CreatureID`,`Index`,`Spell`,`VerifiedBuild`) VALUES +(15328,1,25003,0), +(15328,2,25024,0); + +-- Steam Tonk +UPDATE `creature_model_info` SET `BoundingRadius` = 0.27, `CombatReach` = 5 WHERE `DisplayID` = 15381; +UPDATE `creature_template` SET `speed_walk` = 1.6, `speed_run` = 0.85714285714, `BaseAttackTime` = 2000, `RangeAttackTime` = 2000, `unit_flags` = 33554432, `unit_flags2` = 0 WHERE `entry` = 19405; + +-- Mortar +UPDATE `creature_template` SET `speed_run` = 0.85714285714 WHERE `entry` = 16121; |