Skip to content

Commit

Permalink
Shield Slam did less threat before 1.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Apr 13, 2024
1 parent f8025a9 commit 881112a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions sql/migrations/20240413115356_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
DROP PROCEDURE IF EXISTS add_migration;
DELIMITER ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20240413115356');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20240413115356');
-- Add your query below.


/*
World of Warcraft Client Patch 1.7.0 (2005-09-13)
- Shield Slam - Threat caused increased.
*/
-- No data for previous threat values, so just diving them by 2.
-- Tooltip changed from mederate amount to high amount of threat.
DELETE FROM `spell_threat` WHERE `entry` IN (23922, 23923, 23924, 23925);
INSERT INTO `spell_threat` (`entry`, `Threat`, `multiplier`, `ap_bonus`, `build_min`, `build_max`) VALUES (23922, 89, 1, 0, 4544, 4544);
INSERT INTO `spell_threat` (`entry`, `Threat`, `multiplier`, `ap_bonus`, `build_min`, `build_max`) VALUES (23923, 101, 1, 0, 4544, 4544);
INSERT INTO `spell_threat` (`entry`, `Threat`, `multiplier`, `ap_bonus`, `build_min`, `build_max`) VALUES (23924, 114, 1, 0, 4544, 4544);
INSERT INTO `spell_threat` (`entry`, `Threat`, `multiplier`, `ap_bonus`, `build_min`, `build_max`) VALUES (23925, 127, 1, 0, 4544, 4544);
INSERT INTO `spell_threat` (`entry`, `Threat`, `multiplier`, `ap_bonus`, `build_min`, `build_max`) VALUES (23922, 178, 1, 0, 4695, 5875);
INSERT INTO `spell_threat` (`entry`, `Threat`, `multiplier`, `ap_bonus`, `build_min`, `build_max`) VALUES (23923, 203, 1, 0, 4695, 5875);
INSERT INTO `spell_threat` (`entry`, `Threat`, `multiplier`, `ap_bonus`, `build_min`, `build_max`) VALUES (23924, 229, 1, 0, 4695, 5875);
INSERT INTO `spell_threat` (`entry`, `Threat`, `multiplier`, `ap_bonus`, `build_min`, `build_max`) VALUES (23925, 254, 1, 0, 4695, 5875);


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;

1 comment on commit 881112a

@mserajnik
Copy link
Contributor

@mserajnik mserajnik commented on 881112a Apr 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DB dump workflow fails because spell_threat.entry is currently a primary key, so has to be unique: https://github.com/vmangos/core/actions/runs/8673282797/job/23784472318#step:8:13

Edit: Fixed in b67a840.

Please sign in to comment.