diff --git a/Assets/TRPGMaker/Scripts/Database/SpecializedClass.cs b/Assets/TRPGMaker/Scripts/Database/SpecializedClass.cs index 34de106..c8419b3 100644 --- a/Assets/TRPGMaker/Scripts/Database/SpecializedClass.cs +++ b/Assets/TRPGMaker/Scripts/Database/SpecializedClass.cs @@ -26,16 +26,11 @@ public void Init() public void refreshAttributes() { if (attributes == null) - attributes = Extensions.Clone(Database.Instance.attributes.Where(x => x.isCore).ToList()).ToList(); + attributes = new List(); else { // Remove Deleted attributes.RemoveAll(x => !Database.Instance.attributes.Contains(x.attribute)); - - attributes.AddRange(Extensions.Clone(Database.Instance.attributes.Where(x => !attributes.Any(y => y.attribute.id == x.id) && x.isCore).ToList())); - List aux = new List(); - aux.AddRange(attributes.Where(x => Database.Instance.attributes.Any(y => y.id == x.attribute.id))); - attributes = aux; } }