DoAbility() приватный Метод

private DoAbility ( Abilities ability ) : bool
ability ExBuddy.Helpers.Abilities
Результат bool
Пример #1
0
        public override async Task <bool> MoveFromLocation(ExFishTag tag)
        {
            tag.StatusText = "Moving from " + this;

            var result = true;

            if (ReturnToStealthLocation)
            {
                result &= await StealthLocation.MoveToNoMount(UseMesh, tag.Radius, "Stealth Location", tag.MovementStopCallback);
            }

#if RB_CN
            if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Stealth))
            {
                result &= tag.DoAbility(Ability.Stealth);                 // TODO: move into abilities map?
            }
#else
            if (UnstealthAfter && Core.Player.HasAura((int)AbilityAura.Sneak))
            {
                result &= tag.DoAbility(Ability.Sneak); // TODO: move into abilities map?
            }
#endif

            return(result);
        }
Пример #2
0
        public override async Task <bool> MoveToLocation(ExFishTag tag)
        {
            tag.StatusText = "Moving to " + this;

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

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

            if (result)
            {
                await Coroutine.Yield();

                if (!Core.Player.HasAura((int)AbilityAura.Stealth))
                {
                    tag.DoAbility(ExFishTag.Abilities.Stealth);
                }

                result = await Location.MoveToNoMount(UseMesh, tag.Radius, tag.Name, tag.MovementStopCallback);
            }

            return(result);
        }
Пример #3
0
		public override async Task<bool> MoveFromLocation(ExFishTag tag)
		{
			tag.StatusText = "Moving from " + this;

			var result = true;
			if (ReturnToStealthLocation)
			{
				result &= await StealthLocation.MoveToNoMount(UseMesh, tag.Radius, "Stealth Location", tag.MovementStopCallback);
			}

			if (UnstealthAfter && Core.Player.HasAura((int) AbilityAura.Stealth))
			{
				result &= tag.DoAbility(ExFishTag.Abilities.Stealth); // TODO: move into abilities map?
			}

			return result;
		}
Пример #4
0
		public override async Task<bool> MoveToLocation(ExFishTag tag)
		{
			tag.StatusText = "Moving to " + this;

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

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

			if (result)
			{
				await Coroutine.Yield();
				if (!Core.Player.HasAura((int) AbilityAura.Stealth))
				{
					tag.DoAbility(ExFishTag.Abilities.Stealth);
				}

				result = await Location.MoveToNoMount(UseMesh, tag.Radius, tag.Name, tag.MovementStopCallback);
			}

			return result;
		}