Advertisement
Guest User

Untitled

a guest
Aug 30th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1.  function GroupHealClusterParty30()
  2.     local PrayerMembers = {};
  3.     for Index, Unit in GetNumGroupMembers() do
  4.         local Unit = Primary
  5.         if UnitHealthPercent(Primary) < 90 then
  6.             for Index, Unit in pairs(GetFriendliesNearUnit(Primary, 30)) do
  7.                 local Unit = Secondary
  8.                 if UnitHealthPercent(Secondary) < 90 and and UnitIsPlayer(Secondary) == 1
  9.                 and ((IsInRaid("player") and GetGroupNumber(Primary) == GetGroupNumber(Secondary) and GetGroupNumber(Secondary) ~= nil) or (not IsInRaid("player") and UnitInParty(Secondary) == 1))
  10.                 --and UnitGUID(Primary) ~= UnitGUID(Secondary)
  11.                 then
  12.                 table.insert(PrayerMembers, Primary);
  13.             end
  14.         end
  15.     end
  16.     return PrayerMembers;
  17. end
  18.  
  19. if GroupHealClusterParty30() > 2 then
  20. Cast Prayer of mending
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement