Fix NPC automation not applying correctly?

This commit is contained in:
Ottermandias 2023-07-29 02:23:06 +02:00
parent a0456e7ae7
commit 9de233faec

View file

@ -228,7 +228,7 @@ public class AutoDesignApplier : IDisposable
identifier = _actors.AwaitedService.CreatePlayer(identifier.PlayerName, ushort.MaxValue); identifier = _actors.AwaitedService.CreatePlayer(identifier.PlayerName, ushort.MaxValue);
return _manager.EnabledSets.TryGetValue(identifier, out set); return _manager.EnabledSets.TryGetValue(identifier, out set);
case IdentifierType.Retainer: case IdentifierType.Retainer:
case IdentifierType.Special: case IdentifierType.Npc:
return _manager.EnabledSets.TryGetValue(identifier, out set); return _manager.EnabledSets.TryGetValue(identifier, out set);
case IdentifierType.Owned: case IdentifierType.Owned:
identifier = _actors.AwaitedService.CreateNpc(identifier.Kind, identifier.DataId); identifier = _actors.AwaitedService.CreateNpc(identifier.Kind, identifier.DataId);