Looking for a lua command to get spell damage
I'm new to developping AddOns and just got into the lua language recently. I want to extract the amount of damage that a spell deals with a lua command. I've been scrolling through
but I didin't find such a command (I can only get infos like casttime, ID, name etc. but not the range of damage that a spell deals !)
I want this for tbc classic.
Any suggestion on how I could get the range of damage for each spell ?
(for example, as a mage, my scorch deals "265 to 312" raw damage. All i want is creating 2 variables :
ScorchDmg1 = 265
ScorchDmg2 = 312)
I appreciate any kind of help !
PS : i've tried to extract those numbers from the description of the spell with GetSpellDescription, then find and sub the chain with patterns etc. to extract the numbers but it is SO complicated and not flexible.
|All times are GMT -6. The time now is 10:51 AM.|
vBulletin © 2022, Jelsoft Enterprises Ltd
© 2004 - 2021 MMOUI