diff --git a/sql/updates/world/4.3.4/2018_03_28_00_world.sql b/sql/updates/world/4.3.4/2018_03_28_00_world.sql new file mode 100644 index 00000000000..55e22923529 --- /dev/null +++ b/sql/updates/world/4.3.4/2018_03_28_00_world.sql @@ -0,0 +1,17 @@ +ALTER TABLE `spell_dbc` +CHANGE `SpellInterruptsId` `SpellInterruptsId` INT(10) UNSIGNED DEFAULT 0 NOT NULL AFTER `SpellEquippedItemsId`; + +ALTER TABLE `spelleffect_dbc` +ADD COLUMN `Comment` TEXT NOT NULL AFTER `EffectIndex`; + +CREATE TEMPORARY TABLE `spelleffectdbc_comments` ( +`Id` INT(10) UNSIGNED NOT NULL, +`Comment` TEXT NOT NULL, +PRIMARY KEY (`Id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +INSERT INTO `spelleffectdbc_comments` (`Id`, `Comment`) +SELECT DISTINCT spe.EffectSpellId, sp.`Comment` FROM `spelleffect_dbc` spe LEFT JOIN spell_dbc sp ON sp.Id = spe.EffectSpellId; + +UPDATE `spelleffect_dbc` spe, `spelleffectdbc_comments` spc SET spe.`Comment`=spc.`Comment` WHERE spe.`EffectSpellId` = spc.`Id`; +DROP TABLE `spelleffectdbc_comments`; diff --git a/src/server/game/DataStores/DBCfmt.h b/src/server/game/DataStores/DBCfmt.h index 0c0a1a1e7cb..0553db8f67c 100644 --- a/src/server/game/DataStores/DBCfmt.h +++ b/src/server/game/DataStores/DBCfmt.h @@ -146,11 +146,11 @@ const std::string CustomSpellDifficultyIndex = "id"; char const SpellDurationfmt[] = "niii"; // 0 10 20 26 char const SpellEffectEntryfmt[] = "nifiiiffiiiiiifiifiiiiiiiix"; -const std::string CustomSpellEffectEntryfmt = "ppppppppppppppappppppppppp"; +const std::string CustomSpellEffectEntryfmt = "ppppppppppppppapppppppppppa"; const std::string CustomSpellEffectEntryIndex = "Id"; // 0 10 20 30 40 47 char const SpellEntryfmt[] = "niiiiiiiiiiiiiiifiiiissxxiixxifiiiiiiixiiiiiiiii"; -const std::string CustomSpellEntryfmt = "ppppppppppppppapaaaaaaaaapaaaaaapapppaapppaaapa"; +const std::string CustomSpellEntryfmt = "ppppppppppppppapaaaaaaaaapaaaaaapapppaapppaaapaa"; const std::string CustomSpellEntryIndex = "Id"; char const SpellFocusObjectfmt[] = "nx"; char const SpellItemEnchantmentfmt[] = "nxiiiiiixxxiiisiiiiiiix";