Quote Originally Posted by 'Nolife',index.php?page=Thread&postID=203121#post2 03121
I think you should be able to run something like:
Code:
/script if (UnitPower("player") / UnitPowerMax("player") < 0.5 ) then CastSpellByName("Aspect of the Viper"); else CastSpellByName("Aspect of the Hawk"); end
I'm at work so can't test any scripts. That's just something off the top of my head...
That's never going to work.
CastSpellByName is a protected script call that can only be called from Blizzard code.