Пример #1
0
        public static bool CanCastOn(this EliteAPI api, PartyMember member)
        {
            // If they're in range, and alive, should be able to cast.
            // Since we include distance = 0, should work when target is the PL itself.
            //var entity = api.Entity.GetEntity((int)member.TargetIndex);

            return(api.EntityWithin(21, member.TargetIndex) && member.CurrentHP > 0);
        }