From 041a83a0155afa7ba5ffad0cff380762adeda240 Mon Sep 17 00:00:00 2001 From: dal4segno Date: Mon, 16 Mar 2026 09:47:27 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=8A=A4=ED=82=AC=20=EC=8B=9C=EC=8A=A4?= =?UTF-8?q?=ED=85=9C=20=EC=82=AC=EB=A7=9D=20=EC=83=81=ED=83=9C=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 사망 상태에서 스킬 사용 및 이펙트 발동 방지 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- Assets/Scripts/Skills/SkillController.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Assets/Scripts/Skills/SkillController.cs b/Assets/Scripts/Skills/SkillController.cs index b71430e8..a548f878 100644 --- a/Assets/Scripts/Skills/SkillController.cs +++ b/Assets/Scripts/Skills/SkillController.cs @@ -104,6 +104,14 @@ namespace Colosseum.Skills return false; } + // 사망 상태면 스킬 사용 불가 + var damageable = GetComponent(); + if (damageable != null && damageable.IsDead) + { + if (debugMode) Debug.Log($"[Skill] Cannot execute skill - owner is dead"); + return false; + } + if (IsExecutingSkill) { if (debugMode) Debug.Log($"Already executing skill: {currentSkill.SkillName}"); @@ -204,6 +212,14 @@ namespace Colosseum.Skills return; } + // 사망 상태면 효과 발동 중단 + var damageable = GetComponent(); + if (damageable != null && damageable.IsDead) + { + if (debugMode) Debug.Log($"[Effect] Cancelled - owner is dead"); + return; + } + var effects = currentSkill.Effects; if (index < 0 || index >= effects.Count) {