I helped him work out a script using an addon:
Code:
function Blessing()
if not UnitAffectingCombat("Player") and not UnitExists("Target") then
TargetNearestFriend();
if ( UnitClass("target") == "Priest" ) or ( UnitClass("target")== "Mage" ) or ( UnitClass("target") == "Warlock" ) or ( UnitClass("target") == "Druid" ) then
CastSpellByName("Blessing of Wisdom (Rank3)");
elseif ( UnitClass("target") == "Rogue" ) or ( UnitClass("target")== "Hunter" ) or ( UnitClass("target")== "Paladin" ) or ( UnitClass("target") == "Warrior" ) then
CastSpellByName("Blessing of Might(Rank 5)");
end
elseif UnitInParty("Player") then
TargetUnit("Party1");
if ( UnitClass("target") == "Priest" ) or ( UnitClass("target")== "Mage" ) or ( UnitClass("target") == "Warlock" ) or ( UnitClass("target") == "Druid" ) then
CastSpellByName("Blessing of Wisdom (Rank3)");
elseif ( UnitClass("target") == "Rogue" ) or ( UnitClass("target")== "Hunter" ) or ( UnitClass("target")== "Paladin" ) or ( UnitClass("target") == "Warrior" ) then
CastSpellByName("Blessing of Might(Rank 5)");
end
TargetUnit("Party2");
if ( UnitClass("target") == "Priest" ) or ( UnitClass("target")== "Mage" ) or ( UnitClass("target") == "Warlock" ) or ( UnitClass("target") == "Druid" ) then
CastSpellByName("Blessing of Wisdom (Rank3)");
elseif ( UnitClass("target") == "Rogue" ) or ( UnitClass("target")== "Hunter" ) or ( UnitClass("target")== "Paladin" ) or ( UnitClass("target") == "Warrior" ) then
CastSpellByName("Blessing of Might(Rank 5)");
end
TargetUnit("Party3");
if ( UnitClass("target") == "Priest" ) or ( UnitClass("target")== "Mage" ) or ( UnitClass("target") == "Warlock" ) or ( UnitClass("target") == "Druid" ) then
CastSpellByName("Blessing of Wisdom (Rank3)");
elseif ( UnitClass("target") == "Rogue" ) or ( UnitClass("target")== "Hunter" ) or ( UnitClass("target")== "Paladin" ) or ( UnitClass("target") == "Warrior" ) then
CastSpellByName("Blessing of Might(Rank 5)");
end
TargetUnit("Party4");
if ( UnitClass("target") == "Priest" ) or ( UnitClass("target")== "Mage" ) or ( UnitClass("target") == "Warlock" ) or ( UnitClass("target") == "Druid" ) then
CastSpellByName("Blessing of Wisdom (Rank3)");
elseif ( UnitClass("target") == "Rogue" ) or ( UnitClass("target")== "Hunter" ) or ( UnitClass("target")== "Paladin" ) or ( UnitClass("target") == "Warrior" ) then
CastSpellByName("Blessing of Might(Rank 5)");
end
else
if ( UnitClass("target") == "Priest" ) or ( UnitClass("target")== "Mage" ) or ( UnitClass("target") == "Warlock" ) or ( UnitClass("target") == "Druid" ) then
CastSpellByName("Blessing of Wisdom (Rank3)");
elseif ( UnitClass("target") == "Rogue" ) or ( UnitClass("target")== "Hunter" ) or ( UnitClass("target")== "Paladin" ) or ( UnitClass("target") == "Warrior" ) then
CastSpellByName("Blessing of Might(Rank 5)");
end
end
TargetLastEnemy();
end