public async Task<bool> MoveToSpot(GatherCollectableTag tag)
		{
			tag.StatusText = "Moving to " + this;

			if (StealthLocation == Vector3.Zero)
			{
				return false;
			}

			var result =
				await
				Behaviors.MoveTo(
					StealthLocation,
					UseMesh,
					radius: tag.Radius,
					name: "Stealth Location",
					stopCallback: tag.MovementStopCallback,
					dismountAtDestination: true);

			if (result)
			{
				await Coroutine.Yield();
				await tag.CastAura(Ability.Stealth, AbilityAura.Stealth);

				result =
					await Behaviors.MoveToNoMount(NodeLocation, UseMesh, tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback);
			}

			return result;
		}
示例#2
0
        public virtual async Task<bool> MoveToSpot(GatherCollectableTag tag)
        {
            var result = await Behaviors.MoveTo(NodeLocation, UseMesh, (uint)tag.MountId, tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback, true);

            result &= await tag.CastAura(Ability.Stealth, AbilityAura.Stealth);

            return result;
        }
示例#3
0
        public virtual async Task<bool> MoveFromSpot(GatherCollectableTag tag)
        {
            if (Core.Player.HasAura((int)AbilityAura.Stealth))
            {
                return await tag.CastAura(Ability.Stealth);
            }

            return true;
        }
示例#4
0
		public virtual async Task<bool> MoveFromSpot(GatherCollectableTag tag)
		{
			tag.StatusText = "Moving from " + this;

			if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Stealth))
			{
				return await tag.CastAura(Ability.Stealth);
			}

			return true;
		}
		public async Task<bool> MoveFromSpot(GatherCollectableTag tag)
		{
			tag.StatusText = "Moving from " + this;

			var result = true;
			if (ReturnToStealthLocation)
			{
				result &=
					await Behaviors.MoveToNoMount(StealthLocation, UseMesh, tag.Radius, tag.Node.EnglishName, tag.MovementStopCallback);
			}

			if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Stealth))
			{
				result &= await tag.CastAura(Ability.Stealth);
			}

			return result;
		}
示例#6
0
		public virtual async Task<bool> MoveToSpot(GatherCollectableTag tag)
		{
			tag.StatusText = "Moving to " + this;

			var result =
				await
				Behaviors.MoveTo(
					NodeLocation,
					UseMesh,
					radius: tag.Distance,
					name: tag.Node.EnglishName,
					stopCallback: tag.MovementStopCallback,
					dismountAtDestination: true);

			if (result)
			{
				await Coroutine.Yield();
				await tag.CastAura(Ability.Stealth, AbilityAura.Stealth);
			}

			await Coroutine.Yield();

			return result;
		}
示例#7
0
        public async Task<bool> MoveToSpot(GatherCollectableTag tag)
        {
            if (StealthLocation == Vector3.Zero)
            {
                return false;
            }

            var result = await Behaviors.MoveTo(StealthLocation, UseMesh, (uint)tag.MountId, tag.Radius, "Stealth Location", tag.MovementStopCallback, true);

            if (result)
            {
                await tag.CastAura(Ability.Stealth, AbilityAura.Stealth);

                result = await Behaviors.MoveToNoMount(NodeLocation, UseMesh, tag.Distance, tag.Node.EnglishName, tag.MovementStopCallback);
            }

            return result;
        }