hmm, tryed it in a 2man raid (wanted to test)
but notthing happened, the other person was in tanaris and im was in IF, but it didnt target me :S
Code:
local unitID, spell = "raid"..math.random(1, GetNumRaidMembers())
local _, class = UnitClass(unitID)
local map = {
["WARRIOR"] = L"GreaterBlessingOfKings",
["DRUID"] = L"GreaterBlessingOfKings",
["ROGUE"] = L"GreaterBlessingOfKings",
["PRIST"] = L"GreaterBlessingOfKings",
["MAGE"] = L"GreaterBlessingOfKings",
["WARLOCK"] = L"GreaterBlessingOfKings",
["PALADIN"] = L"GreaterBlessingOfKings",
["HUNTER"] = L"GreaterBlessingOfKings",
}
if (spell and map[spell] and not BuffActive(unitID, map[spell])) then
TargetUnit(unitID)
CastSpell(map[spell])
TargetLastTarget()
end