Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[11299] Handle aura durations in SpellAuraHolder
- Unit::CalculateSpellDuration split into two functions - CalculateSpellDuration taking into account combo points and caster-side spell mods - Unit::CalculateAuraDuration taking into account target-side spell mods - Diminishing is now applied before duration reduction mods - Implement saving per-effect periodic timers to DB (required for auras affected by haste)
- Loading branch information
zergtmn
committed
Mar 30, 2011
1 parent
a79ca96
commit 09090ac
Showing
19 changed files
with
387 additions
and
378 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
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,16 @@ | ||
ALTER TABLE character_db_version CHANGE COLUMN required_11117_02_characters_world required_11299_01_characters_character_aura bit; | ||
|
||
TRUNCATE TABLE character_aura; | ||
ALTER TABLE character_aura | ||
CHANGE COLUMN `maxduration0` `maxduration` INT(11) NOT NULL DEFAULT '0', | ||
CHANGE COLUMN `remaintime0` `remaintime` INT(11) NOT NULL DEFAULT '0', | ||
ADD COLUMN `periodictime0` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `basepoints2`, | ||
ADD COLUMN `periodictime1` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `periodictime0`, | ||
ADD COLUMN `periodictime2` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `periodictime1`, | ||
DROP COLUMN `maxduration1`, | ||
DROP COLUMN `maxduration2`, | ||
DROP COLUMN `remaintime1`, | ||
DROP COLUMN `remaintime2`, | ||
CHANGE COLUMN `stackcount` `stackcount` INT(11) UNSIGNED NOT NULL DEFAULT '1', | ||
CHANGE COLUMN `remaincharges` `remaincharges` INT(11) UNSIGNED NOT NULL DEFAULT '0', | ||
CHANGE COLUMN `effIndexMask` `effIndexMask` INT(11) UNSIGNED NOT NULL DEFAULT '0'; |
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,16 @@ | ||
ALTER TABLE character_db_version CHANGE COLUMN required_11299_01_characters_character_aura required_11299_02_characters_pet_aura bit; | ||
|
||
TRUNCATE TABLE pet_aura; | ||
ALTER TABLE pet_aura | ||
CHANGE COLUMN `maxduration0` `maxduration` INT(11) NOT NULL DEFAULT '0', | ||
CHANGE COLUMN `remaintime0` `remaintime` INT(11) NOT NULL DEFAULT '0', | ||
ADD COLUMN `periodictime0` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `basepoints2`, | ||
ADD COLUMN `periodictime1` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `periodictime0`, | ||
ADD COLUMN `periodictime2` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `periodictime1`, | ||
DROP COLUMN `maxduration1`, | ||
DROP COLUMN `maxduration2`, | ||
DROP COLUMN `remaintime1`, | ||
DROP COLUMN `remaintime2`, | ||
CHANGE COLUMN `stackcount` `stackcount` INT(11) UNSIGNED NOT NULL DEFAULT '1', | ||
CHANGE COLUMN `remaincharges` `remaincharges` INT(11) UNSIGNED NOT NULL DEFAULT '0', | ||
CHANGE COLUMN `effIndexMask` `effIndexMask` INT(11) UNSIGNED NOT NULL DEFAULT '0'; |
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
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
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
Oops, something went wrong.
09090ac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, DMR before duration calculation fixes few talents not working on 10+sec spells (Fear etc). Nice work :)