Looking for a lua command to get spell damage
Hi everyone,
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 "https://wowwiki-archive.fandom.com/wiki/World_of_Warcraft_API#Unit" 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. Wojakpink |
Quote:
|
All times are GMT -6. The time now is 12:37 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI