private static CellObject GetTargetedCell(FightStatus fightStatus, CastTarget castTarget) { //IL_0055: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Unknown result type (might be due to invalid IL or missing references) FightMap current = FightMap.current; if (null == current) { return(null); } switch (castTarget.ValueCase) { case CastTarget.ValueOneofCase.Cell: { CellCoord cell = castTarget.Cell; return(current.GetCellObject(cell.X, cell.Y)); } case CastTarget.ValueOneofCase.EntityId: { int entityId = castTarget.EntityId; if (fightStatus.TryGetEntity(entityId, out IEntityWithBoardPresence entityStatus)) { Vector2Int refCoord = entityStatus.area.refCoord; return(current.GetCellObject(refCoord.get_x(), refCoord.get_y())); } return(null); } default: return(null); } }