Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static bool ValidAttackUnit(this WoWUnit p)
- {
- if (p == null || !p.IsValid)
- return false;
- if (!p.Attackable)
- return false;
- if (p.IsFriendly)
- return false;
- if (p.IsDead)
- return false;
- if (p.IsTotem)
- return false;
- if (p.IsNonCombatPet)
- return false;
- if (!p.CanSelect)
- return false;
- if (p.IsCritter)
- return false;
- if (p.IsPlayer && !p.IsHostile)
- return false;
- if (p.IsPet && !p.IsHostile)
- return false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement