Refactor class configurations for various characters

- Updated Priest.json to enhance spell mappings and reorganize configuration structure.
- Modified Rogue.json to streamline spell definitions and added new abilities.
- Revised Shaman.json to consolidate spell lists and improve clarity.
- Enhanced Warlock.json with updated spell names and improved configuration layout.
- Adjusted Warrior.json to refine spell mappings and added additional abilities.
- Cleaned up common.json by removing redundant fields related to team type and talents.
This commit is contained in:
waynebian01
2026-07-29 10:52:49 +08:00
parent 09ee3daa54
commit 8d5de52861
22 changed files with 1893 additions and 564 deletions

View File

@@ -68,7 +68,8 @@ public sealed class ConditionFieldCatalog
foreach (var (key, node) in stateConfig)
{
if (key is "group" or "spells" or "auras")
if (key is "group" or "spells" or "auras"
|| ModuleSpecialActions.IsFailedSpell(key))
{
continue;
}

View File

@@ -25,7 +25,7 @@ internal static class ModuleSpecialActions
public static string? GetFailedSpell(GameState state, IReadOnlyDictionary<int, string>? failedSpellMap)
{
var failedSpellId = state.GetInt("法术失败");
var failedSpellId = state.GetInt(FailedSpell);
if (failedSpellMap is null || !failedSpellMap.TryGetValue(failedSpellId, out var spellName))
{
return null;