增加攻击行为特殊处理
This commit is contained in:
parent
5a780f207a
commit
fa7039fa48
@ -1774,6 +1774,7 @@ namespace Logic.AI
|
||||
public void CheckIsActionInPlayerSight()
|
||||
{
|
||||
IsInSight = true;
|
||||
if (ActionLogic.ActionId.ActionType == CommonActionType.UnitAttack) return;
|
||||
var player = Param.MapData.PlayerMap.SelfPlayerData;
|
||||
if (Param.MapData.GridMap.GetGridDataByGid(Param.GridId, out var grid)
|
||||
&& player.Sight.CheckIsInSight(grid.Id)) return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user