From 630cd1663ec01eeb58a47233d1e261ec68c07425 Mon Sep 17 00:00:00 2001 From: yurui <952870061@qq.com> Date: Mon, 28 Oct 2024 15:03:03 +0800 Subject: [PATCH] =?UTF-8?q?[Bug1000292]=E5=BC=95=E5=AF=BC=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E5=BC=BA=E5=88=B6=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Code/Scripts/Gameplay/Area/SkillAreaSelecter.cs | 3 +++ .../Gameplay/PlayerSkill/State/PlayerSkillStateChoosePos.cs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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))