diff options
| author | Shauren <shauren.trinity@gmail.com> | 2015-02-17 01:01:44 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2015-02-17 01:01:44 +0100 |
| commit | 56186319bdd41dd26b6cc14f84e6e41eef5d953b (patch) | |
| tree | 7b531cdf71b59170f9fa65120c09935ce51f3307 /sql | |
| parent | 7829412416c9709991fd686030ab77908c27922b (diff) | |
Core/Spells: Cooldown updates
* Refactored cooldown handling to separate class shared by creatures and players
* Updated and enabled cooldown packets
* Implemented creature school lockouts
* Implemented spell charges
* Fixed AuraUpdate structure
* Fixed aura flag AFLAG_NOCASTER handling
* Implemented spell charge related auras
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/base/characters_database.sql | 54 | ||||
| -rw-r--r-- | sql/updates/characters/2015_02_17_00_characters.sql | 28 |
2 files changed, 80 insertions, 2 deletions
diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index 55c71d4bc58..b920bcba8cd 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -1232,6 +1232,31 @@ LOCK TABLES `character_spell` WRITE; UNLOCK TABLES; -- +-- Table structure for table `character_spell_charges` +-- + +DROP TABLE IF EXISTS `character_spell_charges`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `character_spell_charges` ( + `guid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part', + `categoryId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'SpellCategory.dbc Identifier', + `rechargeStart` int(10) unsigned NOT NULL DEFAULT '0', + `rechargeEnd` int(10) unsigned NOT NULL DEFAULT '0', + KEY `idx_guid` (`guid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `character_spell_charges` +-- + +LOCK TABLES `character_spell_charges` WRITE; +/*!40000 ALTER TABLE `character_spell_charges` DISABLE KEYS */; +/*!40000 ALTER TABLE `character_spell_charges` ENABLE KEYS */; +UNLOCK TABLES; + +-- -- Table structure for table `character_spell_cooldown` -- @@ -1240,7 +1265,7 @@ DROP TABLE IF EXISTS `character_spell_cooldown`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_spell_cooldown` ( `guid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part', - `spell` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier', + `spell` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier', `item` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Identifier', `time` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`spell`) @@ -2574,6 +2599,31 @@ LOCK TABLES `pet_spell` WRITE; UNLOCK TABLES; -- +-- Table structure for table `pet_spell_charges` +-- + +DROP TABLE IF EXISTS `pet_spell_charges`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `pet_spell_charges` ( + `guid` int(10) unsigned NOT NULL, + `categoryId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'SpellCategory.dbc Identifier', + `rechargeStart` int(10) unsigned NOT NULL DEFAULT '0', + `rechargeEnd` int(10) unsigned NOT NULL DEFAULT '0', + KEY `idx_guid` (`guid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `pet_spell_charges` +-- + +LOCK TABLES `pet_spell_charges` WRITE; +/*!40000 ALTER TABLE `pet_spell_charges` DISABLE KEYS */; +/*!40000 ALTER TABLE `pet_spell_charges` ENABLE KEYS */; +UNLOCK TABLES; + +-- -- Table structure for table `pet_spell_cooldown` -- @@ -2582,7 +2632,7 @@ DROP TABLE IF EXISTS `pet_spell_cooldown`; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `pet_spell_cooldown` ( `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part', - `spell` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier', + `spell` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier', `time` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`spell`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/sql/updates/characters/2015_02_17_00_characters.sql b/sql/updates/characters/2015_02_17_00_characters.sql new file mode 100644 index 00000000000..ebf539c9a40 --- /dev/null +++ b/sql/updates/characters/2015_02_17_00_characters.sql @@ -0,0 +1,28 @@ +-- +-- Table structure for table `character_spell_charges` +-- + +DROP TABLE IF EXISTS `character_spell_charges`; +CREATE TABLE `character_spell_charges` ( + `guid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part', + `categoryId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'SpellCategory.dbc Identifier', + `rechargeStart` int(10) unsigned NOT NULL DEFAULT '0', + `rechargeEnd` int(10) unsigned NOT NULL DEFAULT '0', + KEY `idx_guid` (`guid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- +-- Table structure for table `pet_spell_charges` +-- + +DROP TABLE IF EXISTS `pet_spell_charges`; +CREATE TABLE `pet_spell_charges` ( + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part', + `categoryId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'SpellCategory.dbc Identifier', + `rechargeStart` int(10) unsigned NOT NULL DEFAULT '0', + `rechargeEnd` int(10) unsigned NOT NULL DEFAULT '0', + KEY `idx_guid` (`guid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +ALTER TABLE `character_spell_cooldown` CHANGE `spell` `spell` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier'; +ALTER TABLE `pet_spell_cooldown` CHANGE `spell` `spell` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier'; |
