Skip to content

Commit

Permalink
Spell: Move SpellShapeshift DBC into database
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed May 23, 2024
1 parent 727bd4e commit 690172d
Show file tree
Hide file tree
Showing 11 changed files with 1,146 additions and 122 deletions.
10 changes: 10 additions & 0 deletions sql/base/dbc/cmangos_fixes/SpellShapeshift.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ALTER TABLE spell_template ADD `Stances` INT UNSIGNED NOT NULL DEFAULT '0' AFTER AttributesEx10;
ALTER TABLE spell_template ADD `StancesNot` INT UNSIGNED NOT NULL DEFAULT '0' AFTER Stances;

UPDATE spell_template INNER JOIN spell_shapeshift ON (spell_template.SpellShapeshiftId = spell_shapeshift.Id) SET spell_template.Stances = ABS(spell_shapeshift.Stances);
UPDATE spell_template INNER JOIN spell_shapeshift ON (spell_template.SpellShapeshiftId = spell_shapeshift.Id) SET spell_template.StancesNot = ABS(spell_shapeshift.StancesNot);


ALTER TABLE spell_template DROP COLUMN SpellShapeshiftId;

DROP TABLE spell_shapeshift;
Loading

0 comments on commit 690172d

Please sign in to comment.