mirror of
https://github.com/waynebian01/Shigure.git
synced 2026-09-03 07:15:24 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user