So i'm trying to make a balance pvp rotation, and i'm having a problem making PQR cast Starfire only if i have the Wrath of Elune buff, so i had a mini eclipse setup and for some reason it's not casting Starfire even if i have the buff, what am i doing wrong?
Eclipse:
Code:
if not eclipse then eclipse = "solar" end
if UnitBuffID("player", 46833) ~= nil
then eclipse = "solar"
elseif UnitBuffID("player", 46833)
then eclipse = "lunar" end
Starfire cast:
Code:
if eclipse == "lunar"
and IsSpellInRange("Wrath", "target") == 1
then return true end
Thank you