-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[9.0.23] Offgcd abilities proposed ignoring power cost #737
Comments
It's the expected outcome. If there is nothing better to show, it will display the first available ability even if there isn't any power, but with the translucent icon. |
ok. in that case, there is some best action priority inconvenience, regarding offgcd spells with cost :) AddIcon When all abilities on CD, Next Best action will show ability with the shortest remaining CD, so player can spam it to being queued. if you uncomment spell(shield_of_the_righteous), then it will be shown as a next best action when everything on CD until CD is actually finished (or i get 3 HP). this crate small lag between usage of abilities but it is there unfortunately. hope you understand what i mean. and i understand that i can always add Holypower() condition to negate this behavior but may be there is some tweaking for best action will be possible also. |
I think a different change might be better. The problem isn't that Shield of the Righteous has a spell cost. The problem is that the spell cost is a resource that has regeneration rate that is not positive (it's zero, or less than zero if out of combat). In that sense, Shield of the Righteous will never be ready no longer how much you wait, unless you start using Holy Power generators on your own. |
You are absolutely right! did not thought about it like this |
In-game, UPDATE: doing more testing in-game, |
I have a working patch for this change, but it needs further testing on classes that use pool_resource before it's good to go. |
Modify getTimeToPowerStateAt() to check every power type if one is not specified, instead of just the primary resource type. Fixes issue Sidoine#737.
…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.
@sirTribble Is this fixed? Can it be closed? |
yep thx |
Describe the bug
Shield of righteous propose even when i don't have 3 holy power
To Reproduce
example script
Define(shield_of_the_righteous 53600)
SpellInfo(shield_of_the_righteous holypower=3 cd=1 gcd=0 offgcd=1)
Define(avenger_shield 31935)
SpellInfo(avenger_shield cd=15)
AddIcon
{
spell(shield_of_the_righteous)
spell(avenger_shield)
}
cast avenger shield. while avenger shield on CD Shield of righteous will be proposed even if under 3 HP
Expected behavior
Shield of righteous should be proposed only on 3 HP or more
Class, specialization and level
The text was updated successfully, but these errors were encountered: