Beispiel #1
0
        public static bool IsMainTank(this GameObject unit)
        {
            var gameObject = unit as Character;

            return(gameObject != null &&
                   Tanks.Contains(gameObject.CurrentJob) &&
                   (gameObject.BeingTargetedBy(Core.Me.CurrentTarget) ||
                    gameObject.BeingTargetedBy(gameObject.TargetGameObject) ||
                    PartyManager.AllMembers.Where(r => r != null).Select(r => r.BattleCharacter).Where(r => Tanks.Contains(r.CurrentJob)).Count() == 1));
        }
        public static bool IsTank(this GameObject unit)
        {
            var gameObject = unit as Character;

            return(gameObject != null && Tanks.Contains(gameObject.CurrentJob));
        }