コード例 #1
0
ファイル: GurenNoSouyoku.cs プロジェクト: odmiex/NKM
        private List <HexCell> GetBasicMoveCellsOverride()
        {
            bool isAbilityActive = ParentCharacter.Effects.ContainsType(typeof(Effects.Flying));

            if (!isAbilityActive)
            {
                return(ParentCharacter.DefaultGetBasicMoveCells());
            }

            List <HexCell> cellRange = ParentCharacter.ParentCell.GetNeighbors(ParentCharacter.Speed.Value, false, true);

            cellRange.RemoveAll(cell => cell.CharacterOnCell != null);             //we don't want to allow stepping into our characters!
            return(cellRange);
        }