[Bug1000292]引导技能强制位置
parent
9c6e1cb220
commit
630cd1663e
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue