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); }
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); }
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; }
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; }