Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function GroupHealClusterParty30()
- local PrayerMembers = {};
- for Index, Unit in GetNumGroupMembers() do
- local Unit = Primary
- if UnitHealthPercent(Primary) < 90 then
- for Index, Unit in pairs(GetFriendliesNearUnit(Primary, 30)) do
- local Unit = Secondary
- if UnitHealthPercent(Secondary) < 90 and and UnitIsPlayer(Secondary) == 1
- and ((IsInRaid("player") and GetGroupNumber(Primary) == GetGroupNumber(Secondary) and GetGroupNumber(Secondary) ~= nil) or (not IsInRaid("player") and UnitInParty(Secondary) == 1))
- --and UnitGUID(Primary) ~= UnitGUID(Secondary)
- then
- table.insert(PrayerMembers, Primary);
- end
- end
- end
- return PrayerMembers;
- end
- if GroupHealClusterParty30() > 2 then
- Cast Prayer of mending
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement