From f69d5c01c438cd92bbd81bb0ca6e580a22821e2a Mon Sep 17 00:00:00 2001 From: alexpolo1 Date: Sat, 8 Aug 2026 13:48:02 +0200 Subject: [PATCH] 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 --- src/utils/skill_preflight.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/skill_preflight.py b/src/utils/skill_preflight.py index f6a8287..1d5f625 100644 --- a/src/utils/skill_preflight.py +++ b/src/utils/skill_preflight.py @@ -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",