Heya, Basically i'm playing with a pally/priest and wanted to make a macro for the priest so that it will apply SW:P to the target only if it isnt affected, and if it already is then it'll cast smite, I found this after googling and added abit to make it what i wanted but its throwing errors. Any help appreciated
/Script if UnitIsFriend("player", "target") then TargetUnit("targettarget") end; if not buffed("Shadow Word: Pain", 'target') then cast("Shadow Word: Pain");else c("Smite(Rank 1)"); end; TargetLastTarget()