mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
fix: trial avatar cannot enter battle
This commit is contained in:
@@ -15,6 +15,7 @@ public class AvatarConfigExcel : ExcelResource
|
||||
[JsonIgnore] public List<AvatarSkillTreeConfigExcel> SkillTree = [];
|
||||
|
||||
public int AvatarID { get; set; } = 0;
|
||||
public int AdventurePlayerID { get; set; }
|
||||
public HashName AvatarName { get; set; } = new();
|
||||
public int ExpGroup { get; set; } = 0;
|
||||
public int MaxPromotion { get; set; } = 0;
|
||||
|
||||
@@ -63,7 +63,8 @@ public class SceneSkillManager(PlayerInstance player) : BasePlayerManager(player
|
||||
return GameData.AdventureAbilityConfigListData.GetValueOrDefault(monster.MonsterData.ID);
|
||||
|
||||
if (entity is AvatarSceneInfo avatar)
|
||||
return GameData.AdventureAbilityConfigListData.GetValueOrDefault(avatar.AvatarInfo.GetAvatarId());
|
||||
if (GameData.AvatarConfigData.TryGetValue(avatar.AvatarInfo.GetAvatarId(), out var excel))
|
||||
return GameData.AdventureAbilityConfigListData.GetValueOrDefault(excel.AdventurePlayerID);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user