by Geigerkind » Fri Dec 25, 2015 9:54 pm
Lets say you have an table with the different mana costs of the spell:
local a = {200,400,600,800,1000}
for c,v in pairs(a) do if UnitMana("player")==v then CastSpellByName("Flash of Light (Rank "..c..")"); break end; if UnitMana("player")<v then CastSpellByName("Flash of Light (Rank "..(c-1)..")"); break end end
Something like that. I have not tested it though
My Addons:
DPSMate - A combat analyzation tool (/viewtopic.php?f=63&t=38042)
Vanilla Consolidated Buff-Frames (/viewtopic.php?f=63&t=18189)
Modified Power Auras (/viewtopic.php?f=63&t=18251)