unique follower

This commit is contained in:
Lucca Faria Ferri 2023-07-27 01:22:41 -07:00
parent 6e7812bbe3
commit 33001803e6
2 changed files with 8 additions and 2 deletions

View File

@ -254,7 +254,7 @@ namespace DiIiS_NA.GameServer.GSSystem.QuestSystem
// {
// actor.Teleport(Game.FirstPlayer().Position.Around(2f));
// }
AddFollower(Game.GetWorld(WorldSno.trout_town), ActorSno._leah);
AddUniqueFollower(Game.GetWorld(WorldSno.trout_town), ActorSno._leah);
}
else
{
@ -272,7 +272,7 @@ namespace DiIiS_NA.GameServer.GSSystem.QuestSystem
NextStep = 49,
OnAdvance = () =>
{ //go to gates
AddFollower(Game.GetWorld(WorldSno.trout_town), ActorSno._leah);
AddUniqueFollower(Game.GetWorld(WorldSno.trout_town), ActorSno._leah);
var world = Game.GetWorld(WorldSno.trout_town);
StartConversation(world, 166678);
ListenProximity(ActorSno._trout_oldtristram_exit_gate, new Advance());

View File

@ -276,6 +276,12 @@ namespace DiIiS_NA.GameServer.GSSystem.QuestSystem
return Game.Players.Values.First().Followers.Any(x => x.Value == sno);
}
public void AddUniqueFollower(World world, ActorSno sno)
{
if (!HasFollower(sno))
AddFollower(world, sno);
}
public void AddFollower(World world, ActorSno sno)
{
if (Game.Players.Count > 0)