diff options
| author | Shauren <shauren.trinity@gmail.com> | 2015-09-10 19:39:30 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2015-09-10 19:39:30 +0200 |
| commit | 1efb3f08e278530f59d681f676b031a7fc6db3ac (patch) | |
| tree | dbf88a94966ccc2f6f5f91896fb2962bc5bcf715 /sql/updates/characters | |
| parent | b194595c07762e0be0475b7e9f86be9de6f76a06 (diff) | |
Core/Spells: Improved spell category cooldown handling
* Category cooldown is stored with the spell that started the cooldown (and only resetting cooldown on that spell will clear cooldowns on entire category - this fully mirrors client behavior)
* This significantly reduces the amount of data saved to database for cooldowns
* Spell casts from items that have a different category specified than on spell will now check for cooldown during the cast
Closes #15349
Diffstat (limited to 'sql/updates/characters')
| -rw-r--r-- | sql/updates/characters/2015_09_10_00_characters.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/updates/characters/2015_09_10_00_characters.sql b/sql/updates/characters/2015_09_10_00_characters.sql new file mode 100644 index 00000000000..94c9066c6ae --- /dev/null +++ b/sql/updates/characters/2015_09_10_00_characters.sql @@ -0,0 +1,7 @@ +ALTER TABLE `character_spell_cooldown` + ADD `categoryId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell category Id' AFTER `time`, + ADD `categoryEnd` int(10) unsigned NOT NULL DEFAULT '0' AFTER `categoryId`; + +ALTER TABLE `pet_spell_cooldown` + ADD `categoryId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell category Id' AFTER `time`, + ADD `categoryEnd` int(10) unsigned NOT NULL DEFAULT '0' AFTER `categoryId`; |
