diff --git a/Assets/_Game/Scripts/Player/PlayerSkillInput.cs b/Assets/_Game/Scripts/Player/PlayerSkillInput.cs index e0f7ddb4..5a361d5e 100644 --- a/Assets/_Game/Scripts/Player/PlayerSkillInput.cs +++ b/Assets/_Game/Scripts/Player/PlayerSkillInput.cs @@ -392,6 +392,20 @@ namespace Colosseum.Player if (slotIndex < 0 || slotIndex >= skillSlots.Length) return; + // Ground Target 타겟팅 모드 중이면 같은 스킬 키로 확정 + if (currentTargetingMode == TargetingMode.GroundTarget) + { + if (slotIndex == pendingGroundTargetSlotIndex) + { + ConfirmGroundTarget(); + } + else + { + CancelGroundTargetMode(); + } + return; + } + SkillLoadoutEntry loadoutEntry = GetSkillLoadout(slotIndex); SkillData skill = loadoutEntry != null ? loadoutEntry.BaseSkill : null; if (skill == null) @@ -1018,13 +1032,6 @@ namespace Colosseum.Player groundTargetIndicator.UpdatePosition(currentPos); } - // 좌클릭: 지면 타겟 확정 - if (Mouse.current != null && Mouse.current.leftButton.wasPressedThisFrame) - { - ConfirmGroundTarget(); - return; - } - // 우클릭 또는 ESC: 타겟팅 취소 if ((Mouse.current != null && Mouse.current.rightButton.wasPressedThisFrame) || (Keyboard.current != null && Keyboard.current.escapeKey.wasPressedThisFrame))