-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: spells are usable only if they meet all of their power requireme…
…nts (#746) * Consider very small power regeneration rates to be zero The Blizzard API function GetPowerRegen() can return very small numbers when the actual regeneration rate is zero. Treat very small numbers to be equal to zero in getPowerRateAt(). Also, add some type signatures to getPowerRateAt() while we are here. * Check "time to power" for every power needed for a spell Modify getTimeToPowerStateAt() to check every power type if one is not specified, instead of just the primary resource type. Fixes issue #737.
- Loading branch information
1 parent
d8df7bd
commit 18d7714
Showing
4 changed files
with
87 additions
and
50 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
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