forked from cmangos/mangos-cata
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spell: Move SpellTargetRestrictions DBC into database
- Loading branch information
Showing
12 changed files
with
5,640 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ALTER TABLE spell_template ADD `MaxTargetRadius` FLOAT NOT NULL DEFAULT '0' AFTER SpellTargetRestrictionsId; | ||
ALTER TABLE spell_template ADD `MaxAffectedTargets` INT UNSIGNED NOT NULL DEFAULT '0' AFTER MaxTargetRadius; | ||
ALTER TABLE spell_template ADD `MaxTargetLevel` INT UNSIGNED NOT NULL DEFAULT '0' AFTER MaxAffectedTargets; | ||
ALTER TABLE spell_template ADD `TargetCreatureType` INT UNSIGNED NOT NULL DEFAULT '0' AFTER MaxTargetLevel; | ||
ALTER TABLE spell_template ADD `Targets` INT UNSIGNED NOT NULL DEFAULT '0' AFTER TargetCreatureType; | ||
|
||
UPDATE spell_template INNER JOIN spell_target_restrictions ON (spell_template.SpellTargetRestrictionsId = spell_target_restrictions.ID) SET spell_template.MaxTargetRadius = spell_target_restrictions.MaxTargetRadius; | ||
UPDATE spell_template INNER JOIN spell_target_restrictions ON (spell_template.SpellTargetRestrictionsId = spell_target_restrictions.ID) SET spell_template.MaxAffectedTargets = spell_target_restrictions.MaxAffectedTargets; | ||
UPDATE spell_template INNER JOIN spell_target_restrictions ON (spell_template.SpellTargetRestrictionsId = spell_target_restrictions.ID) SET spell_template.MaxTargetLevel = spell_target_restrictions.MaxTargetLevel; | ||
UPDATE spell_template INNER JOIN spell_target_restrictions ON (spell_template.SpellTargetRestrictionsId = spell_target_restrictions.ID) SET spell_template.TargetCreatureType = spell_target_restrictions.TargetCreatureType; | ||
UPDATE spell_template INNER JOIN spell_target_restrictions ON (spell_template.SpellTargetRestrictionsId = spell_target_restrictions.ID) SET spell_template.Targets = spell_target_restrictions.Targets; | ||
|
||
ALTER TABLE spell_template DROP COLUMN SpellTargetRestrictionsId; | ||
|
||
DROP TABLE spell_target_restrictions; |
Oops, something went wrong.