diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/SkillAreaSelecter.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/SkillAreaSelecter.cs index f2ed4850319..d94f5813a27 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/SkillAreaSelecter.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/Area/SkillAreaSelecter.cs @@ -11,6 +11,7 @@ namespace Gameplay.Area using Level; using Skill; using UnityEngine; + using Gameplay.Guide; public class SkillAreaSelecter { @@ -347,6 +348,8 @@ namespace Gameplay.Area // 中心点单独设置 _isCenterCellValid = _CheckCenterAvilable(cellIndex); + if (GuideManager.Instance.IsGuiding && GuideManager.Instance.IsControlFloor) // 引导释放技能特殊处理 + _isCenterCellValid &= cellIndex == GuideManager.Instance.FloorIndex; DebugUtil.LogG("中心点是否合法: " + _isCenterCellValid); if (_isCenterCellValid && skillConfig.ReleaseArea != 0) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/PlayerSkill/State/PlayerSkillStateChoosePos.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/PlayerSkill/State/PlayerSkillStateChoosePos.cs index dcd86656f45..90d614b0bcc 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/PlayerSkill/State/PlayerSkillStateChoosePos.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/PlayerSkill/State/PlayerSkillStateChoosePos.cs @@ -4,6 +4,7 @@ using Framework; using Gameplay.Area; using Gameplay.Common; using Gameplay.Effect; +using Gameplay.Guide; using Gameplay.Level; using Gameplay.Performance; using Gameplay.Utils; @@ -131,7 +132,9 @@ namespace Gameplay.PlayerSkill.State EventManager.Instance.Send(EventManager.EventName.Guide_UseSkill); DebugUtil.LogG("接收到释放技能消息"); isFinished = true; - var posCanRelease = _checker.CheckAvailable(_lastMouseCellIndex); + bool posCanRelease = _checker.CheckAvailable(_lastMouseCellIndex); + if (GuideManager.Instance.IsGuiding && GuideManager.Instance.IsControlFloor) // 引导释放指挥官技能特殊处理 + posCanRelease &= _lastMouseCellIndex == GuideManager.Instance.FloorIndex; if (!owner.readySkillConfig.CanReleaseOnDark) { if (!BlackAreaManager.instance.CheckIsInLightArea(_lastMouseCellIndex))