Aura.Channel.World.Entities.Creatures.CreatureQuests.IsActive C# (CSharp) Method

IsActive() public method

Returns true if the quest is in progress, optionally also checking if it's on the given objective .
public IsActive ( int questId, string objective = null ) : bool
questId int
objective string
return bool
		public bool IsActive(int questId, string objective = null)
		{
			var quest = this.GetFirstIncomplete(questId);
			if (quest == null) return false;

			var current = quest.CurrentObjective;
			if (current == null) return false;

			if (objective != null && current.Ident != objective)
				return false;

			return (quest.State == QuestState.InProgress);
		}