What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to check if RiftUnit is Mounted?

darkfriend77

Member
Joined
Jun 14, 2011
Messages
467
Reaction score
2
Hi,

im working on a PvP Healer asssist ... and right now im checking some code to get all raid buffs done .. but i need some function to check if my player is mounted ...

Anyone has an idear ...


and an other question is ... how to iterate over all players in a raid without colapsing first the Parties in to a new list of units....

like

/*
* getPlayers
* ----------
*
*/
private static IEnumerable<RiftUnit> getPlayers(int cluster = 0, int attitude = 0, int distance = 30, int health = 0)
{
List<RiftUnit> players = new List<RiftUnit>();

if (cluster == 1)
players = GigaRift.Objects.GetUnits().ToList();
else if (GigaRift.Me.InRaid)
foreach (RiftParty p in GigaRift.Me.Raid.Parties)
foreach (RiftPartyMember u in p.Members)
players.Add(u.Unit);
else
foreach (RiftPartyMember u in GigaRift.Me.Party.Members)
players.Add(u.Unit);

return from u in players
where u.DistanceSqr < distance * distance
&& !u.IsDead
&& u.IsPlayer
&& (attitude == 0 || attitude == 1 && u.IsFriendly || attitude == 2 && u.IsHostile)
&& (health == 0 || u.HealthPercent < health)
&& u.InLineOfSight()
//orderby u.Health ascending
select u;
}


if anyone could give me some advice which ... debuffs or dots ... are really important to remove with Cleansing Prayer .. in pvp ... ..
 
Back
Top