This reverts commit 179cb50557.
This commit is contained in:
parent
179cb50557
commit
c2ecc76457
588 changed files with 16260 additions and 10926 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Server.Gumps;
|
||||
using Server.Misc;
|
||||
using Server.Mobiles;
|
||||
|
|
@ -21,13 +20,14 @@ namespace Server.Engines.MLQuests.Objectives
|
|||
MLQuestContext context = MLQuestSystem.GetContext(pm);
|
||||
|
||||
if (context != null)
|
||||
if (context.QuestInstances.Any(instance => instance.Quest.IsEscort))
|
||||
{
|
||||
if (message)
|
||||
MLQuestSystem.Tell(quester, pm, 500896); // I see you already have an escort.
|
||||
foreach (MLQuestInstance instance in context.QuestInstances)
|
||||
if (instance.Quest.IsEscort)
|
||||
{
|
||||
if (message)
|
||||
MLQuestSystem.Tell(quester, pm, 500896); // I see you already have an escort.
|
||||
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
DateTime nextEscort = pm.LastEscortTime + BaseEscortable.EscortDelay;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue