public static bool CanHarvestCorpse(TorNpc unit) { var SkillReq = Math.Max(unit.Level - 3, 0)*8; if (unit != null) if (!unit.IsDeleted) if (unit.IsDead && unit.Distance <= 4.0f && ((HasBio && unit.CreatureType == CreatureType.Creature && PISkill("Bioanalysis") >= SkillReq) || (HasScav && unit.CreatureType == CreatureType.Droid && PISkill("Scavenging") >= SkillReq)) && StrongOrGreater(unit) && !unit.IsFriendly) if (!Blacklist.Contains(unit.Guid)) return true; return false; }
public static bool CanHarvestCorpse(TorNpc unit) { var SkillReq = Math.Max(unit.Level - 3, 0) * 8; if (unit != null) { if (!unit.IsDeleted) { if (unit.IsDead && unit.Distance <= 4.0f && ((HasBio && unit.CreatureType == CreatureType.Creature && PISkill("Bioanalysis") >= SkillReq) || (HasScav && unit.CreatureType == CreatureType.Droid && PISkill("Scavenging") >= SkillReq)) && StrongOrGreater(unit) && !unit.IsFriendly) { if (!Blacklist.Contains(unit.Guid)) { return(true); } } } } return(false); }