fix(skill_preflight): add fohdin build support alongside hammerdin

- Changed char_type check from == to in (hammerdin, fohdin)
- Uses getattr(config_instance, char_type, {}) to load correct build config
- Enables proper skill preflight validation for FOH paladin builds
This commit is contained in:
alexpolo1
2026-08-08 13:48:02 +02:00
parent 14f5876524
commit f69d5c01c4
+2 -2
View File
@@ -59,8 +59,8 @@ def get_build_skill_checks(config_instance: Config, char_type: str | None = None
char_type = char_type or config_instance.char.get("type", "")
checks = []
if char_type == "hammerdin":
build_cfg = getattr(config_instance, "hammerdin", {})
if char_type in ("hammerdin", "fohdin"):
build_cfg = getattr(config_instance, char_type, {})
# blessed hammer lives on left-click; auras/teleport go to right
# hotkeys select onto the RIGHT slot; left holds the hammer permanently
checks.append(SkillCheck(char_type, "blessed_hammer",