WeakAuras / WeakAuras2

World of Warcraft addon that provides a powerful framework to display customizable graphics on your screen.
https://weakauras.wtf
GNU General Public License v2.0
1.3k stars 316 forks source link

Show spells "%spellCount" with "Disabled Spell Known Check" when spell is not known #4144

Closed Nokramx closed 1 year ago

Nokramx commented 1 year ago

Description

It seems like currently in weakauras a spells %spellCount will only show if the spell is actually known. My logic tells me that the correct spell count should be displayed when you select "Disabled Spell Known Check" in the trigger.

Also, the spell count is still shown on my action button, even if i dont have the talent providing the spell count selected. So the information from the game seems to be there.

My example is a implosion weakaura which shows the spell count of my implosion (number of my imps, which is quite important information, even if you dont select implosion talent)

WeakAuras Version

5.3.3

World of Warcraft Flavor

Retail (Default)

Tested with only WeakAuras

Lua Error

No response

Reproduction Steps

  1. Log in on a Demonology Warlock
  2. Import the string for the example weakaura
  3. see how spell count is correctly shown with implosion talent selected
  4. untalent implosion -> spell count will always show 0

Last Good Version

No response

Screenshots

https://i.imgur.com/kJubOWQ.png

Export String

!WA:2!1vvZUTXTw4RJVf(wHSWwnXXXPlesW1ibb1)M60Bkqb0OmQ1Tk2gJKRtrrHgoZWrKXZqYqYXYkENqqrwuCxOv9NDc5jqa9fWpbde6tGFe8dqrpKJSJtqIwOHNdp8WZpFFhov9YPLJkh9QVuYZ0jugwUZETAS12UdPHCwtEMmepL8ODIJvy9VC1rruLib1Rf(i94)7AlRe4KKA8mMw2RWMxE1riwiHl3LtzANgU1BnoKZtI4Dzn7sfyFrLl5K2XCzks3w0wttXtKMsmByMsZtnwSNicPXbz2pRNjte3IO1c1JwzLUOo8LP8vC(2h(CV4AFZdxznjkut5m1MEknsQl5qzu9sbfU72LkniI3UqGeed7PiL6RL0oDWs1)Fj5KLV6oEAWth4GY08bOmjIHsXQf92y9n(FRkHuzhwsp)b20FByRfUYF)NNLPWTJGinoUwcsPigfUhbbutJzBf57HpeZ0IBwBs9OYUsEhjwPQCxRj370qEAa0eEcshsWQHkcVBdExSspW4CBm5FkS8RH2LODOPWtmYTrbkUm4j8i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ufe9qjccAAVUgnUdqmAQnH3mFU6JpFewBZqxPcd1Miv(M5hFcgPmHdM1rtMPVrYeT5h7KIOS65)A(Vzml)3Nj)pGpx)D1SEgnAu94NV2MBC4gm6QaNZKda)FUlva2fbxGMmQamudsi53o1utn9qtCqlgEmIYkQLG0sJGLHyxZlpazCHI3wMmMXQ1vk5sfaNT(AA4xzL3NV8glVr5d)RN(pd
InfusOnWoW commented 1 year ago

You have to enable the "Exact Spell Id" setting for that to work. This mirros how the game api works, GetSpellCount("Implosion") returns 0, whereas GetSpellCount(196277) returns the correct value.